From: Chris Rienzo Date: Mon, 15 Apr 2019 20:41:01 +0000 (-0400) Subject: FS-11785 [mod_commands] fix dead assignments X-Git-Tag: v1.10.0~167 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d77034a304eba3c6b3fe4bd8ced7da357d052c13;p=thirdparty%2Ffreeswitch.git FS-11785 [mod_commands] fix dead assignments --- diff --git a/src/mod/applications/mod_commands/mod_commands.c b/src/mod/applications/mod_commands/mod_commands.c index df7485c9be..64a97ad866 100644 --- a/src/mod/applications/mod_commands/mod_commands.c +++ b/src/mod/applications/mod_commands/mod_commands.c @@ -1512,8 +1512,6 @@ SWITCH_STANDARD_API(stun_function) if (iport > 0 && iport < 0xFFFF) { stun_port = (switch_port_t) iport; } - } else { - p = stun_ip; } if (!zstr(src_ip) && (p = strchr(src_ip, ':'))) { @@ -3117,7 +3115,6 @@ SWITCH_STANDARD_API(tone_detect_session_function) } else { if ((to = atoi(argv[4])) < switch_epoch_time_now(NULL)) { switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "INVALID Timeout!\n"); - to = 0; goto done; } }