diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-01-24 00:19:55 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-01-24 00:19:55 +0000 |
commit | e8b71c573a84abaac074d046399adfff4fd5820e (patch) | |
tree | 177fc5dc1ed7312513f4d48605b161f9960be3ad | |
parent | c7776916251e958e39a2fefd6a28a92fda4db23a (diff) |
Merged revisions 51828 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r51828 | russell | 2007-01-23 18:17:50 -0600 (Tue, 23 Jan 2007) | 4 lines
Don't set a new value for the END_ variable on the channel before using the
old value. If you do, it will lead to accessing a memory address that has
been free()'d. (issue #8895, arkadia)
........
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@51829 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | apps/app_while.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_while.c b/apps/app_while.c index 33f9bbb51..8595916f3 100644 --- a/apps/app_while.c +++ b/apps/app_while.c @@ -231,8 +231,8 @@ static int _while_exec(struct ast_channel *chan, void *data, int end) pbx_builtin_setvar_helper(chan, my_name, NULL); snprintf(end_varname,VAR_SIZE,"END_%s",varname); if ((goto_str=pbx_builtin_getvar_helper(chan, end_varname))) { - pbx_builtin_setvar_helper(chan, end_varname, NULL); ast_parseable_goto(chan, goto_str); + pbx_builtin_setvar_helper(chan, end_varname, NULL); } else { int pri = find_matching_endwhile(chan); if (pri > 0) { |