[asterisk-commits] twilson: branch 1.4 r107290 - /branches/1.4/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Mar 10 19:59:19 CDT 2008


Author: twilson
Date: Mon Mar 10 19:59:18 2008
New Revision: 107290

URL: http://svn.digium.com/view/asterisk?view=rev&rev=107290
Log:
If we fail to alloc a channel, we should re-lock the pvt structure before returning.

Modified:
    branches/1.4/channels/chan_sip.c

Modified: branches/1.4/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_sip.c?view=diff&rev=107290&r1=107289&r2=107290
==============================================================================
--- branches/1.4/channels/chan_sip.c (original)
+++ branches/1.4/channels/chan_sip.c Mon Mar 10 19:59:18 2008
@@ -3983,6 +3983,7 @@
 	}
 	if (!tmp) {
 		ast_log(LOG_WARNING, "Unable to allocate AST channel structure for SIP channel\n");
+		ast_mutex_lock(&i->lock);
 		return NULL;
 	}
 	ast_mutex_lock(&i->lock);




More information about the asterisk-commits mailing list