git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12821 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Mathieu Rene 2009-03-28 02:27:20 +00:00
parent 677b161647
commit fa9621b99b
1 changed files with 1 additions and 1 deletions

View File

@ -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");
}