From de0f17db0bb40661bf964b679373194d77d14c1e Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 1 May 2008 20:22:53 +0000 Subject: [PATCH] update git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8240 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_sofia/sofia.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index cb450e62e2..5b9b3931e6 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -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); }