From: Russell Bryant Date: Mon, 4 Jun 2007 21:45:24 +0000 (+0000) Subject: Remove a leftover unlock and lock of the iax2 pvt struct lock that was left X-Git-Tag: 1.6.0-beta1~3^2~2509 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7fec9250873c4ed10b90a1e9c4c3c37208a8a6c;p=thirdparty%2Fasterisk.git Remove a leftover unlock and lock of the iax2 pvt struct lock that was left 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 --- diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c index 63eddf79a3..2174fbdf19 100644 --- a/channels/chan_iax2.c +++ b/channels/chan_iax2.c @@ -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)