]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res/res_sorcery_config: Prevent crash from misconfigured sorcery.conf 30/930/1
authorMatt Jordan <mjordan@digium.com>
Sun, 19 Jul 2015 14:11:18 +0000 (09:11 -0500)
committerMatt Jordan <mjordan@digium.com>
Sun, 19 Jul 2015 14:11:18 +0000 (09:11 -0500)
commit9475dc9492bbb0921e27ac33398faaa81a6eae08
treed16d60f543942ce0fa67f0582ebb9cf01cd2b7c0
parent7908ae49347919f4a9ecc4089a56f516c5562f5a
res/res_sorcery_config: Prevent crash from misconfigured sorcery.conf

Misconfiguring sorcery.conf with a 'config' wizard with no extra data
will currently crash Asterisk on startup, as the wizard requires a comma
delineated list to parse. This patch updates res_sorcery_config to check
for the presence of the data before it starts manipulating it.

Change-Id: I4c97512e8258bc82abe190627a9206c28f5d3847
res/res_sorcery_config.c