[svn-commits] trunk r32089 - /trunk/channels/chan_sip.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Sun Jun 4 11:58:27 MST 2006


Author: oej
Date: Sun Jun  4 13:58:27 2006
New Revision: 32089

URL: http://svn.digium.com/view/asterisk?rev=32089&view=rev
Log:
Fix potential bug. THanks luigi!

Modified:
    trunk/channels/chan_sip.c

Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?rev=32089&r1=32088&r2=32089&view=diff
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Sun Jun  4 13:58:27 2006
@@ -7329,12 +7329,8 @@
 			ast_uri_decode(referdata->replaces_callid);
 			if ((ptr = strchr(referdata->replaces_callid, ';'))) 	/* Remove options */ {
 				*ptr = '\0';
+				ptr++;
 			}
-			/*
-			 * XXX don't know what was the intention but this code is
-			 * definitely wrong, as ptr can be NULL here.
-			 */
-			ptr++;
 
 			/* Find the different tags before we destroy the string */
 			to = strcasestr(ptr, "to-tag=");



More information about the svn-commits mailing list