]> 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:06:22 +0000 (14:06 -0400)
commitf306e451f6f905a2bb74c15cb844735c244a7610
tree068f804a32216e224aee1bf83c62d387b399b9b3
parentd0a1239f5560810662c84f38ebc342a39072e093
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