[asterisk-commits] file: branch 1.4 r44760 - /branches/1.4/channels/chan_iax2.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon Oct 9 08:46:53 MST 2006


Author: file
Date: Mon Oct  9 10:46:53 2006
New Revision: 44760

URL: http://svn.digium.com/view/asterisk?rev=44760&view=rev
Log:
iaxs[callno] may go away if we try to avoid the deadlock

Modified:
    branches/1.4/channels/chan_iax2.c

Modified: branches/1.4/channels/chan_iax2.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_iax2.c?rev=44760&r1=44759&r2=44760&view=diff
==============================================================================
--- branches/1.4/channels/chan_iax2.c (original)
+++ branches/1.4/channels/chan_iax2.c Mon Oct  9 10:46:53 2006
@@ -1710,11 +1710,12 @@
 
 static void iax2_destroy(int callno)
 {
-	struct chan_iax2_pvt *pvt = iaxs[callno];
+	struct chan_iax2_pvt *pvt;
 	struct iax_frame *cur;
 	struct ast_channel *owner;
 
 retry:
+	pvt = iaxs[callno];
 	gettimeofday(&lastused[callno], NULL);
 	
 	owner = pvt ? pvt->owner : NULL;



More information about the asterisk-commits mailing list