git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8240 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2008-05-01 20:22:53 +00:00
parent 3803807841
commit de0f17db0b

View File

@ -1517,7 +1517,7 @@ static void sofia_handle_sip_r_options(switch_core_session_t *session, int statu
{
sofia_gateway_t *gateway = NULL;
if (sofia_private->gateway_name) {
if (sofia_private && !switch_strlen_zero(sofia_private->gateway_name)) {
gateway = sofia_reg_find_gateway(sofia_private->gateway_name);
}