mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-14 13:58:38 +00:00
Make sure we release the correct lock!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3514 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2882,8 +2882,8 @@ static int attempt_transfer(struct zt_pvt *p)
|
||||
p->subs[SUB_THREEWAY].owner->bridge->name, p->subs[SUB_REAL].owner->name);
|
||||
return -1;
|
||||
}
|
||||
swap_subs(p, SUB_THREEWAY, SUB_REAL);
|
||||
ast_mutex_unlock(&p->subs[SUB_THREEWAY].owner->lock);
|
||||
swap_subs(p, SUB_THREEWAY, SUB_REAL);
|
||||
unalloc_sub(p, SUB_THREEWAY);
|
||||
/* Tell the caller not to hangup */
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user