From: Anthony Minessale Date: Tue, 6 Jul 2010 15:25:58 +0000 (-0500) Subject: fix seg in user_recurse_variables=false edge case X-Git-Tag: v1.2-rc1~563^2~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ccb9a4eb0df990268442486ec7c797dcec788818;p=thirdparty%2Ffreeswitch.git fix seg in user_recurse_variables=false edge case --- diff --git a/src/mod/applications/mod_dptools/mod_dptools.c b/src/mod/applications/mod_dptools/mod_dptools.c index ffffeefe6c..a394d64a9a 100755 --- a/src/mod/applications/mod_dptools/mod_dptools.c +++ b/src/mod/applications/mod_dptools/mod_dptools.c @@ -2781,7 +2781,7 @@ static switch_call_cause_t user_outgoing_channel(switch_core_session_t *session, if (session) { channel = switch_core_session_get_channel(session); if ((varval = switch_channel_get_variable(channel, SWITCH_CALL_TIMEOUT_VARIABLE)) - || (varval = switch_event_get_header(var_event, "leg_timeout"))) { + || (var_event && (varval = switch_event_get_header(var_event, "leg_timeout")))) { timelimit = atoi(varval); }