[Freeswitch-svn] [commit] r3405 - freeswitch/trunk/src/mod/endpoints/mod_sofia

Freeswitch SVN mikej at freeswitch.org
Sat Nov 18 11:44:09 EST 2006


Author: mikej
Date: Sat Nov 18 11:44:09 2006
New Revision: 3405

Modified:
   freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c

Log:
check for null qrealm too.

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c	Sat Nov 18 11:44:09 2006
@@ -4160,7 +4160,7 @@
 	duprealm = strdup(realm);
 	qrealm = duprealm;
 	
-	while(*qrealm && *qrealm == '"') {
+	while(qrealm && *qrealm && *qrealm == '"') {
 		qrealm++;
 	}
 	if ((p = strchr(qrealm, '"'))) {



More information about the Freeswitch-svn mailing list