Remove a leftover unlock and lock of the iax2 pvt struct lock that was left
authorRussell Bryant <russell@russellbryant.com>
Mon, 4 Jun 2007 21:45:24 +0000 (21:45 +0000)
committerRussell Bryant <russell@russellbryant.com>
Mon, 4 Jun 2007 21:45:24 +0000 (21:45 +0000)
over from my attempt at putting pvt structs in a hash table.  It can cause
seg faults, and has no reason to stay.
(issue #9642, pointed out by stevedavies)

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

channels/chan_iax2.c

index 63eddf7..2174fbd 100644 (file)
@@ -6747,8 +6747,6 @@ static int socket_process(struct iax2_thread *thread)
                f.subclass != IAX_COMMAND_TXCNT &&              /* for attended transfer */
                f.subclass != IAX_COMMAND_TXACC) {              /* for attended transfer */
                iaxs[fr->callno]->peercallno = (unsigned short)(ntohs(mh->callno) & ~IAX_FLAG_FULL);
-               ast_mutex_unlock(&iaxsl[fr->callno]);
-               ast_mutex_lock(&iaxsl[fr->callno]);
        }
        if (ntohs(mh->callno) & IAX_FLAG_FULL) {
                if (option_debug  && iaxdebug)