[asterisk-commits] trunk r25060 - /trunk/channels/chan_sip.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon May 8 04:11:07 MST 2006


Author: russell
Date: Fri May  5 16:43:06 2006
New Revision: 25060

URL: http://svn.digium.com/view/asterisk?rev=25060&view=rev
Log:
fix the return value of gettag() to only return the pointer to the provided
tag buffer if the tag was actually found.  There is code that checks to see
if this result is non-zero to determine whether the tag was found or not.
(issue #7092, mikma)

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=25060&r1=25059&r2=25060&view=diff
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Fri May  5 16:43:06 2006
@@ -10795,8 +10795,9 @@
 		sep = strchr(tagbuf, ';');
 		if (sep)
 			*sep = '\0';
-	}
-	return tagbuf;
+		return tagbuf;
+	}
+	return NULL;
 }
 
 /*! \brief Handle incoming notifications */



More information about the asterisk-commits mailing list