]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-10867: [freeswitch-core] fix regression in stack smash protection
authorMike Jerris <mike@jerris.com>
Fri, 13 Apr 2018 21:12:54 +0000 (16:12 -0500)
committerMuteesa Fred <muteesafred@hotmail.com>
Tue, 24 Jul 2018 07:21:50 +0000 (07:21 +0000)
src/switch_ivr.c

index 462ed56b22ceada0ba0d067a0700f0b01f2d8ad0..47e4105fb6f0e9a4f29b2b20f2fc7439571eacc3 100644 (file)
@@ -914,7 +914,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_parse_all_events(switch_core_session_
                if (switch_channel_media_up(channel)) {
                        switch_channel_clear_flag(channel, CF_BLOCK_BROADCAST_UNTIL_MEDIA);
                } else {
-                       return SWITCH_STATUS_SUCCESS;
+                       goto done;
                }
        }
 
@@ -922,6 +922,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_parse_all_events(switch_core_session_
                x++;
        }
 
+ done:
        switch_core_session_stack_count(session, -1);
        
        return SWITCH_STATUS_SUCCESS;