]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_parking: Fix crash if ATTENDEDTRANSFER set empty before Park. 12/912/1
authorRichard Mudgett <rmudgett@digium.com>
Tue, 14 Jul 2015 19:36:42 +0000 (14:36 -0500)
committerRichard Mudgett <rmudgett@digium.com>
Thu, 16 Jul 2015 00:30:13 +0000 (19:30 -0500)
commitc782320c68633c9b1b805affaec1bfe604370d7f
tree225b6106f979f7065a966be402cd473c291af352
parent5086bdacfb921ba3edbe49a1177163f5be846549
res_parking: Fix crash if ATTENDEDTRANSFER set empty before Park.

setup_park_common_datastore() was assuming that a non-NULL string returned
for the ATTENDEDTRANSFER and BLINDTRANSFER channel variables are not empty
strings.  Things got crashy as a result.

* Made setup_park_common_datastore() treat the channel variable values the
same whether they are NULL or empty for ATTENDEDTRANSFER and
BLINDTRANSFER.

ASTERISK-25254 #close
Reported by: Richard Mudgett

Change-Id: I9a9c174b33f354f35f82cc6b7cea8303adbaf9c2
res/parking/parking_applications.c