From 790bf9a94798283955f074abaef84958b3aec55d Mon Sep 17 00:00:00 2001 From: Nathan Neulinger Date: Tue, 20 Aug 2013 13:01:40 -0500 Subject: [PATCH] FS-5164 - fix segv on ring handling due to listener not being defined --- src/mod/endpoints/mod_skinny/skinny_server.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/mod/endpoints/mod_skinny/skinny_server.c b/src/mod/endpoints/mod_skinny/skinny_server.c index b24c976729..29148f952e 100644 --- a/src/mod/endpoints/mod_skinny/skinny_server.c +++ b/src/mod/endpoints/mod_skinny/skinny_server.c @@ -488,6 +488,12 @@ int skinny_session_set_variables_callback(void *pArg, int argc, char **argv, cha listener = helper->listener; + if ( ! listener ) { + switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(helper->tech_pvt->session), SWITCH_LOG_DEBUG, + "no defined listener on channel var setup, will not attempt to set variables\n"); + return(0); + } + /* Process through and extract any variables from the user and set in the channel */ switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(helper->tech_pvt->session), SWITCH_LOG_DEBUG, "searching for user (id=%s) in profile %s in channel var setup\n",