Skip to content
Snippets Groups Projects
Commit a3675bad authored by Guillaume Roguez's avatar Guillaume Roguez Committed by gerrit2
Browse files

fix missing lock


Fix a returning without unlocking detected by Coverity scan.

Change-Id: I53faa761649202ce7ed49845ca6c91a31d914338
Reviewed-by: default avatarAnthony Léonard <anthony.leonard@savoirfairelinux.com>
parent a20eff52
Branches
Tags
No related merge requests found
......@@ -423,8 +423,10 @@ bool PresSubClient::lock()
}
lock_flag_ = PRESENCE_LOCK_FLAG;
if (dlg_ == NULL)
if (dlg_ == NULL) {
pres_->unlock();
return true;
}
if (pjsip_dlg_try_inc_lock(dlg_) != PJ_SUCCESS) {
lock_flag_ = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment