From: Anthony Minessale Date: Thu, 24 Jul 2008 11:31:46 +0000 (+0000) Subject: whoops X-Git-Tag: v1.0.1~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9592b3fe67cc4de6c8d9f87dd6262d2c822ed47c;p=thirdparty%2Ffreeswitch.git whoops git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9167 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index 6aac9eb2b3..a13efae686 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -137,7 +137,7 @@ void sofia_handle_sip_i_bye(switch_core_session_t *session, int status, if (sip->sip_user_agent && !switch_strlen_zero(sip->sip_user_agent->g_string)) { switch_channel_set_variable(channel, "sip_user_agent", sip->sip_user_agent->g_string); - } else if (sip->sip_user_agent && !switch_strlen_zero(sip->sip_server->g_string)) { + } else if (sip->sip_server && !switch_strlen_zero(sip->sip_server->g_string)) { switch_channel_set_variable(channel, "sip_user_agent", sip->sip_server->g_string); }