FS-10867: [freeswitch-core] fix regression in stack smash protection

This commit is contained in:
Mike Jerris 2018-04-13 16:12:54 -05:00 committed by Muteesa Fred
parent 184fbd6a9f
commit 5b24f62f98
1 changed files with 2 additions and 1 deletions

View 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;