From 5b24f62f98ec4ef7eba46dd4e33e234420d8903a Mon Sep 17 00:00:00 2001 From: Mike Jerris Date: Fri, 13 Apr 2018 16:12:54 -0500 Subject: [PATCH] FS-10867: [freeswitch-core] fix regression in stack smash protection --- src/switch_ivr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/switch_ivr.c b/src/switch_ivr.c index 462ed56b22..47e4105fb6 100644 --- a/src/switch_ivr.c +++ b/src/switch_ivr.c @@ -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;