aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-07-26 13:38:47 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-07-26 13:38:47 +0000
commit2ab3cc3fc909d729da491aab66fde88433a956c1 (patch)
treea486560eb7409a73fccdbfd2ccc477cdf84655ab /channels
parent7076dc8212237df82e26758c0bec07caa80abcfc (diff)
Make sure we release the correct lock!
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3514 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rwxr-xr-xchannels/chan_zap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c
index 1bdc07860..087035329 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;