Skip to content
Snippets Groups Projects
Commit 8b381d89 authored by Sébastien Le Stum's avatar Sébastien Le Stum Committed by Sébastien Blin
Browse files

sipaccount: prevent use-after-free on error in onComplete

Using release() on a unique_ptr container will transfer the ownership
and actually empty the unique_ptr, leaving it NULL.

Fix a potential use-after-free if the send_request fails by scoping in
the release of the context pointer.

Change-Id: I495964fd9b0edd24b528649bace679369a967dd5
parent 5325b647
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment