From 57c68bcb3a2b8f9cdfba712912546070a602c227 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Thu, 24 Apr 2008 15:55:21 +0000 Subject: [PATCH] Fix a silly mistake in a change I made yesterday that caused chan_iax2 to blow up very quickly. (issue #12515) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@114608 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/chan_iax2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c index f30ea54f8b..d44163e226 100644 --- a/channels/chan_iax2.c +++ b/channels/chan_iax2.c @@ -1353,7 +1353,7 @@ static int __find_callno(unsigned short callno, unsigned short dcallno, struct s res = x; } } - if (res && !return_locked) + if (!res || (res && !return_locked)) ast_mutex_unlock(&iaxsl[x]); } for (x=TRUNK_CALL_START;(res < 1) && (x