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

FreeSWITCH SVN mrene at freeswitch.org
Fri Mar 27 19:27:20 PDT 2009


Author: mrene
Date: Fri Mar 27 21:27:20 2009
New Revision: 12821

Log:
sigh

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

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c	Fri Mar 27 21:27:20 2009
@@ -1375,7 +1375,7 @@
 	const char *sip_auth_username = NULL;
 	const char *sip_auth_password = NULL;
 
-	if ((channel = switch_core_session_get_channel(session))) {
+	if (session && (channel = switch_core_session_get_channel(session))) {
 		sip_auth_username = switch_channel_get_variable(channel, "sip_auth_username");
 		sip_auth_password = switch_channel_get_variable(channel, "sip_auth_password");
 	}



More information about the Freeswitch-svn mailing list