From: Michael Jerris Date: Wed, 8 Nov 2006 19:12:28 +0000 (+0000) Subject: Fix segfault on registrations when we are not challenged for aut. can't match scheme... X-Git-Tag: v1.0-beta1~1785 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88a53a6b44aa638269feedfcaa8055a9e679cf2b;p=thirdparty%2Ffreeswitch.git Fix segfault on registrations when we are not challenged for aut. can't match scheme and realm if there isn't one. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3282 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/endpoints/mod_sofia/mod_sofia.c b/src/mod/endpoints/mod_sofia/mod_sofia.c index 24258b05a4..3ae9cd51bb 100644 --- a/src/mod/endpoints/mod_sofia/mod_sofia.c +++ b/src/mod/endpoints/mod_sofia/mod_sofia.c @@ -4090,7 +4090,7 @@ static void sip_r_register(int status, } 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; }