[asterisk-commits] file: trunk r79990 - /trunk/channels/chan_iax2.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sun Aug 19 19:54:19 CDT 2007


Author: file
Date: Sun Aug 19 19:54:19 2007
New Revision: 79990

URL: http://svn.digium.com/view/asterisk?view=rev&rev=79990
Log:
(closes issue #10495)
Reported by: stevedavies
Make sure context pointer is valid or else chan_iax2 will go kaboom.

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=79990&r1=79989&r2=79990
==============================================================================
--- trunk/channels/chan_iax2.c (original)
+++ trunk/channels/chan_iax2.c Sun Aug 19 19:54:19 2007
@@ -9549,7 +9549,7 @@
 
 	if (!ast_strlen_zero(peer->mailbox)) {
 		char *mailbox, *context;
-		mailbox = ast_strdupa(peer->mailbox);
+		context = mailbox = ast_strdupa(peer->mailbox);
 		strsep(&context, "@");
 		if (ast_strlen_zero(context))
 			context = "default";




More information about the asterisk-commits mailing list