From: Joshua Colp Date: Fri, 9 Jun 2006 18:26:42 +0000 (+0000) Subject: Remove an unneeded double lock (issue #7310 reported by arkadia) X-Git-Tag: 1.2.10~70 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c38c7a1f46427000e8b7880e2f242d5dfea598cf;p=thirdparty%2Fasterisk.git Remove an unneeded double lock (issue #7310 reported by arkadia) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@33297 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c index a3640fa4f8..1f66bbc263 100644 --- a/channels/chan_iax2.c +++ b/channels/chan_iax2.c @@ -5866,11 +5866,9 @@ static int auth_fail(int callno, int failcode) ast_mutex_lock(&iaxsl[callno]); iaxs[callno]->authfail = failcode; if (delayreject) { - ast_mutex_lock(&iaxsl[callno]); if (iaxs[callno]->authid > -1) ast_sched_del(sched, iaxs[callno]->authid); iaxs[callno]->authid = ast_sched_add(sched, 1000, auth_reject, (void *)(long)callno); - ast_mutex_unlock(&iaxsl[callno]); } else auth_reject((void *)(long)callno); ast_mutex_unlock(&iaxsl[callno]);