]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Remove an unneeded double lock (issue #7310 reported by arkadia)
authorJoshua Colp <jcolp@digium.com>
Fri, 9 Jun 2006 18:26:42 +0000 (18:26 +0000)
committerJoshua Colp <jcolp@digium.com>
Fri, 9 Jun 2006 18:26:42 +0000 (18:26 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@33297 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_iax2.c

index a3640fa4f85cae99dceb43eba6c0277ad5333903..1f66bbc263090ffb6c324031669af6644db453d0 100644 (file)
@@ -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]);