aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_local.c
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-10-30 19:43:38 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-10-30 19:43:38 +0000
commitcd3a024c44a380ae9b3739701ebadb2237e864b2 (patch)
tree070b035c8214b3b63097cf5e66bdcc6f473e8bfb /channels/chan_local.c
parent9b95fd5d33881f31c092b000dabc0806c0914fb7 (diff)
Unlock before returning, when extension doesn't exist.
(closes issue #13807) Reported by: eliel Patches: chan_local.c.patch uploaded by eliel (license 64) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@152922 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_local.c')
-rw-r--r--channels/chan_local.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/channels/chan_local.c b/channels/chan_local.c
index f4b9479b7..d879cb006 100644
--- a/channels/chan_local.c
+++ b/channels/chan_local.c
@@ -489,6 +489,7 @@ static int local_call(struct ast_channel *ast, char *dest, int timeout)
if (!ast_exists_extension(NULL, p->chan->context, p->chan->exten, 1, p->owner->cid.cid_num)) {
ast_log(LOG_NOTICE, "No such extension/context %s@%s while calling Local channel\n", p->chan->exten, p->chan->context);
+ ast_mutex_unlock(&p->lock);
return -1;
}