From: Mike Jerris Date: Fri, 13 Apr 2018 21:12:54 +0000 (-0500) Subject: FS-10867: [freeswitch-core] fix regression in stack smash protection X-Git-Tag: v1.8.1~3^2~72 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b24f62f98ec4ef7eba46dd4e33e234420d8903a;p=thirdparty%2Ffreeswitch.git FS-10867: [freeswitch-core] fix regression in stack smash protection --- 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;