From fa9621b99bc84fab13dbdf519b972e69652517ae Mon Sep 17 00:00:00 2001 From: Mathieu Rene Date: Sat, 28 Mar 2009 02:27:20 +0000 Subject: [PATCH] sigh git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12821 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_sofia/sofia_reg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/endpoints/mod_sofia/sofia_reg.c b/src/mod/endpoints/mod_sofia/sofia_reg.c index d71dd266d7..3fc06aaaa1 100644 --- a/src/mod/endpoints/mod_sofia/sofia_reg.c +++ b/src/mod/endpoints/mod_sofia/sofia_reg.c @@ -1375,7 +1375,7 @@ void sofia_reg_handle_sip_r_challenge(int status, 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"); }