]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Fixes crash in audiohook_write_list
authorDavid Vossel <dvossel@digium.com>
Thu, 29 Apr 2010 15:31:02 +0000 (15:31 +0000)
committerDavid Vossel <dvossel@digium.com>
Thu, 29 Apr 2010 15:31:02 +0000 (15:31 +0000)
commit49c20ee9c5c57a2a5aa014cc5c668ff452825587
tree2daeb592940981092f4d1fb8cb390f5894a42330
parent2077fcfc6d93e6b01d8636892c84d36849eedd3d
Fixes crash in audiohook_write_list

The middle_frame in the audiohook_write_list function was
being freed if a audiohook manipulator returned a failure.
This is incorrect logic.  This patch resolves this and
adds detailed descriptions of how this function should work
and why manipulator failures must be ignored.

(closes issue #17052)
Reported by: dvossel
Tested by: dvossel

(closes issue #16196)
Reported by: atis

Review: https://reviewboard.asterisk.org/r/623/

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@260049 65c4cc65-6c06-0410-ace0-fbb531ad65f3
include/asterisk/audiohook.h
main/audiohook.c