[svn-commits] tilghman: trunk r150635 - /trunk/channels/chan_iax2.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Oct 17 12:09:04 CDT 2008


Author: tilghman
Date: Fri Oct 17 12:09:03 2008
New Revision: 150635

URL: http://svn.digium.com/view/asterisk?view=rev&rev=150635
Log:
Make helper call a little safer (suggested by Russell on IRC)

Modified:
    trunk/channels/chan_iax2.c

Modified: trunk/channels/chan_iax2.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_iax2.c?view=diff&rev=150635&r1=150634&r2=150635
==============================================================================
--- trunk/channels/chan_iax2.c (original)
+++ trunk/channels/chan_iax2.c Fri Oct 17 12:09:03 2008
@@ -2312,8 +2312,9 @@
 	struct ast_channel *owner = NULL;
 
 retry:
-	pvt = iaxs[callno];
-	iax2_destroy_helper(pvt);
+	if ((pvt = iaxs[callno])) {
+		iax2_destroy_helper(pvt);
+	}
 
 	lastused[callno] = ast_tvnow();
 	




More information about the svn-commits mailing list