Merged revisions 33297 via svnmerge from
authorJoshua Colp <jcolp@digium.com>
Fri, 9 Jun 2006 18:29:58 +0000 (18:29 +0000)
committerJoshua Colp <jcolp@digium.com>
Fri, 9 Jun 2006 18:29:58 +0000 (18:29 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r33297 | file | 2006-06-09 15:26:42 -0300 (Fri, 09 Jun 2006) | 2 lines

Remove an unneeded double lock (issue #7310 reported by arkadia)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@33298 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_iax2.c

index ad3b7b3..87c665f 100644 (file)
@@ -5815,11 +5815,9 @@ static int auth_fail(int callno, int failcode)
        if (iaxs[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);
        }