]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Prevent a crash in ExternalIVR when the 'S' command is sent first.
authorSean Bright <sean@malleable.com>
Thu, 19 Apr 2012 16:04:21 +0000 (16:04 +0000)
committerSean Bright <sean@malleable.com>
Thu, 19 Apr 2012 16:04:21 +0000 (16:04 +0000)
commit9fcf8338c56ee2cd9bccb49441d422282dc74a36
treef6bd7fcc78fc8925a7183f24773e575b5b43eb5f
parenta132a4654312cc217dc35f37cb42901e83b46168
Prevent a crash in ExternalIVR when the 'S' command is sent first.

If the first command sent from an ExternalIVR client is an 'S' command, we were
blindly removing the first element from the play list and deferencing it, even
if it was NULL.  This corrects that and also locks appropriately in one place.

(issue ASTERISK-17889)
Reported by: Chris Maciejewski
........

Merged revisions 362586 from http://svn.asterisk.org/svn/asterisk/branches/1.8

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10@362587 65c4cc65-6c06-0410-ace0-fbb531ad65f3
apps/app_externalivr.c