[asterisk-commits] tilghman: branch 1.4 r131480 - /branches/1.4/channels/chan_iax2.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jul 16 16:46:06 CDT 2008


Author: tilghman
Date: Wed Jul 16 16:46:06 2008
New Revision: 131480

URL: http://svn.digium.com/view/asterisk?view=rev&rev=131480
Log:
Apparently, in certain cases, a callno is already destroyed when iax2_destroy is called.

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?view=diff&rev=131480&r1=131479&r2=131480
==============================================================================
--- branches/1.4/channels/chan_iax2.c (original)
+++ branches/1.4/channels/chan_iax2.c Wed Jul 16 16:46:06 2008
@@ -1305,7 +1305,7 @@
 			goto retry;
 		}
 	}
-	if (!owner) {
+	if (!owner && iaxs[callno]) {
 		AST_SCHED_DEL(sched, iaxs[callno]->lagid);
 		AST_SCHED_DEL(sched, iaxs[callno]->pingid);
 		iaxs[callno] = NULL;




More information about the asterisk-commits mailing list