]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_parking: Fix crash if ATTENDEDTRANSFER set empty before Park. 16/916/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 17:25:13 +0000 (12:25 -0500)
commit131f6ef8f598f13c29a9399be019c9ae7800753d
treee1a8a7fd230eb6269c9db8f5c955f04c5680a446
parent23b7b109c2e41702efe104d06953a32c307a6adb
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