From 29cf76e749b35c39d63144d1c8a7f029e9022e0e Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 10 Oct 2008 19:28:07 +0000 Subject: [PATCH] punt git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9942 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_sofia/sofia.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index 41e4e89e71..f93d456eab 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -2228,7 +2228,9 @@ static void sofia_handle_sip_i_state(switch_core_session_t *session, int status, channel = switch_core_session_get_channel(session); tech_pvt = switch_core_session_get_private(session); switch_assert(tech_pvt != NULL); - switch_assert(tech_pvt->nh != NULL); + if (!tech_pvt->nh) { + goto done; + } switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Channel %s entering state [%s]\n", switch_channel_get_name(channel), nua_callstate_name(ss_state));