Commit a3675bad authored by Guillaume Roguez's avatar Guillaume Roguez Committed by gerrit2

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
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment