From: Mark Spencer Date: Mon, 26 Jul 2004 13:38:47 +0000 (+0000) Subject: Make sure we release the correct lock! X-Git-Tag: 1.0.0-rc2~90 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d0c1882cf7af058d10bb1bea834e146db4dfa08d;p=thirdparty%2Fasterisk.git Make sure we release the correct lock! git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3514 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_zap.c b/channels/chan_zap.c index 1bdc078609..087035329b 100755 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -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;