]> 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 15:53:56 +0000 (15:53 +0000)
committerSean Bright <sean@malleable.com>
Thu, 19 Apr 2012 15:53:56 +0000 (15:53 +0000)
commitc2447e0cc8124a5260c7456816f743f09d86cfd6
treedc31c67e0004c59725ed2c5981f0532b411291fc
parent07a9b1744d81a4173fe5b6275d429e2a277a9d05
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

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