[asterisk-addons-commits] file: trunk r416 - /trunk/chan_mobile.c

SVN commits to the Asterisk addons project asterisk-addons-commits at lists.digium.com
Fri Jul 20 12:25:47 CDT 2007


Author: file
Date: Fri Jul 20 12:25:47 2007
New Revision: 416

URL: http://svn.digium.com/view/asterisk-addons?view=rev&rev=416
Log:
(closes issue #10242)
Reported by: IgorG
Patches:
      mobcrash-415-1.patch uploaded by IgorG (license #20)
Don't crash when unloading chan_mobile when it did not completely initialize itself.

Modified:
    trunk/chan_mobile.c

Modified: trunk/chan_mobile.c
URL: http://svn.digium.com/view/asterisk-addons/trunk/chan_mobile.c?view=diff&rev=416&r1=415&r2=416
==============================================================================
--- trunk/chan_mobile.c (original)
+++ trunk/chan_mobile.c Fri Jul 20 12:25:47 2007
@@ -1788,7 +1788,8 @@
 		free(pvt);
 	}
 
-	sdp_close(sdp_session);
+	if (sdp_session)
+		sdp_close(sdp_session);
 
 	return 0;
 




More information about the asterisk-addons-commits mailing list