• Sébastien Le Stum's avatar
    sipaccount: prevent use-after-free on error in onComplete · 8b381d89
    Sébastien Le Stum authored
    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
    8b381d89
sipaccount.cpp 78.8 KB