]> git.ipfire.org Git - thirdparty/asterisk.git/commit
app_stack: protect against missing parameters to STACK_PEEK and LOCAL_PEEK
authorCorey Farrell <git@cfware.com>
Sat, 1 Feb 2014 00:22:52 +0000 (00:22 +0000)
committerCorey Farrell <git@cfware.com>
Sat, 1 Feb 2014 00:22:52 +0000 (00:22 +0000)
commit36771d3004927402c30c0517d75ba3df9d0aec1b
tree75fd6ca553cde44d9568094187e5407d9aa49801
parentc5e4585565f581fb83a241b9cecb37dfbcb4a61c
app_stack: protect against missing parameters to STACK_PEEK and LOCAL_PEEK

STACK_PEEK requires 2 parameters and LOCAL_PEEK requires 1 parameter.  This
protects against situations where those parameters are blank or missing by
logging an error and returning.

(closes issue ASTERISK-23220)
Reported by: James Sharp

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