]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-11785 [mod_commands] fix dead assignments
authorChris Rienzo <chris@signalwire.com>
Mon, 15 Apr 2019 20:41:01 +0000 (16:41 -0400)
committerAndrey Volk <andywolk@gmail.com>
Wed, 17 Jul 2019 16:21:39 +0000 (20:21 +0400)
src/mod/applications/mod_commands/mod_commands.c

index df7485c9be06fc44788f2ca07d1a5d36035a0253..64a97ad8667bc9bf56a8f42a698ac83227a0193f 100644 (file)
@@ -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;
                        }
                }