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

Freeswitch SVN mikej at freeswitch.org
Wed Nov 8 14:12:30 EST 2006


Author: mikej
Date: Wed Nov  8 14:12:28 2006
New Revision: 3282

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

Log:
Fix segfault on registrations when we are not challenged for aut.  can't match scheme and realm if there isn't one.

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	Wed Nov  8 14:12:28 2006
@@ -4090,7 +4090,7 @@
 		} else if (profile) {
 			outbound_reg_t *oregp;
 			for (oregp = profile->registrations; oregp; oregp = oregp->next) {
-				if (!strcasecmp(oregp->register_scheme, scheme) && !strcasecmp(oregp->register_realm, realm)) {
+				if (scheme && realm && !strcasecmp(oregp->register_scheme, scheme) && !strcasecmp(oregp->register_realm, realm)) {
 					oreg = oregp;
 					break;
 				}



More information about the Freeswitch-svn mailing list