[asterisk-commits] dvossel: branch 1.4 r226736 - /branches/1.4/channels/chan_iax2.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Nov 2 09:31:07 CST 2009


Author: dvossel
Date: Mon Nov  2 09:31:02 2009
New Revision: 226736

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=226736
Log:
fixes crash on iterator_destroy on uninitialized iterator

(closes issue #16162)
Reported by: krn

Modified:
    branches/1.4/channels/chan_iax2.c

Modified: branches/1.4/channels/chan_iax2.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.4/channels/chan_iax2.c?view=diff&rev=226736&r1=226735&r2=226736
==============================================================================
--- branches/1.4/channels/chan_iax2.c (original)
+++ branches/1.4/channels/chan_iax2.c Mon Nov  2 09:31:02 2009
@@ -6422,7 +6422,6 @@
 		ast_codec_pref_convert(&iaxs[callno]->rprefs, ies->codec_prefs, 32, 0);
 		ast_codec_pref_convert(&iaxs[callno]->prefs, ies->codec_prefs, 32, 0);
 	}
-	ao2_iterator_destroy(&i);
 
 	if (!gotcapability) 
 		iaxs[callno]->peercapability = iaxs[callno]->peerformat;




More information about the asterisk-commits mailing list