summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2004-05-08 14:24:58 +0000
committerMark Spencer <markster@digium.com>2004-05-08 14:24:58 +0000
commitdca37d634ebc2e75e0c637f4be10712e4b392751 (patch)
treea009312fa871986ebc9ab9a067e7d108b647ed91 /channels
parent29718a5001327d7487481a621616ad77d25aba72 (diff)
Add missing unlock (although it shouldn't make a difference)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2922 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rwxr-xr-xchannels/chan_zap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c
index 40215c7c9..4ede61f40 100755
--- a/channels/chan_zap.c
+++ b/channels/chan_zap.c
@@ -1641,6 +1641,7 @@ static int zt_call(struct ast_channel *ast, char *rdest, int timeout)
}
if (pri_grab(p, p->pri)) {
ast_log(LOG_WARNING, "Failed to grab PRI!\n");
+ ast_mutex_unlock(&p->lock);
return -1;
}
if (!(p->call = pri_new_call(p->pri->pri))) {