[asterisk-commits] russell: trunk r46055 - /trunk/channels/chan_sip.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon Oct 23 17:52:07 MST 2006


Author: russell
Date: Mon Oct 23 19:52:06 2006
New Revision: 46055

URL: http://svn.digium.com/view/asterisk?rev=46055&view=rev
Log:
Fix a seg fault on a registration.  Line 7706, in parse_register_contact,
explicitly passes NULL as the "pass" argument to this function.

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=46055&r1=46054&r2=46055&view=diff
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Mon Oct 23 19:52:06 2006
@@ -2254,9 +2254,9 @@
 	int error = 0;
 
 	/* init field as required */
-	if (*pass)
+	if (pass && *pass)
 		*pass = "";
-	if (*port)
+	if (port && *port)
 		*port = "";
 	name = strsep(&uri, ";");	/* remove options */
 	if (scheme) {



More information about the asterisk-commits mailing list