]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_agi: Prevent crash when SET VARIABLE called without arguments
authorSean Bright <sean.bright@gmail.com>
Tue, 23 May 2017 18:06:22 +0000 (14:06 -0400)
committerSean Bright <sean.bright@gmail.com>
Tue, 23 May 2017 18:08:44 +0000 (13:08 -0500)
commit3dcb3c88aa2f77d32fb4a0c6370b337bb017f30e
tree0298fb02b53854b221277a5a616eb036f474538f
parentdece2eb8929c11bad30616d8f3a236ed449c718c
res_agi: Prevent crash when SET VARIABLE called without arguments

Explicitly check that the appropriate number of arguments were passed to
SET VARIABLE before attempting to reference them. Also initialize the
arguments array to zeroes before populating it.

ASTERISK-22432 #close

Change-Id: I5143607d80a2724f749c1674f3126b04ed32ea97
res/res_agi.c