]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Reset our ast_str before passing it on to dialplan function backends.
authorMatthew Nicholson <mnicholson@digium.com>
Fri, 8 Jul 2011 19:52:51 +0000 (19:52 +0000)
committerMatthew Nicholson <mnicholson@digium.com>
Fri, 8 Jul 2011 19:52:51 +0000 (19:52 +0000)
commit1fcdb0f58b9daa2b5599b8a2df99ba89fb245beb
tree01007b4f52e2c868412f9496a8b84f5f63cb2e4f
parent635a81d58b6faef6187c36b1e76d05e1c8004e63
Reset our ast_str before passing it on to dialplan function backends.

It is possible for a dialplan backend to not modify the given buffer or ast_str
and still return success. This causes any previous value stored in the buffer
to be used as if the new function call provided it. Some functions also append
to the given buffer assuming it is empty.

The test_substitution unit test has also been modified to detect this problem.

(closes issue ASTERISK-17878)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@327106 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/pbx.c
tests/test_substitution.c