]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res/res_sorcery_config: Prevent crash from misconfigured sorcery.conf 31/931/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:14:03 +0000 (09:14 -0500)
commit03064daeb2bc78339400b0c05f657032a3e27011
tree78463311b0444223ed7a164e8ddee31d56375040
parent1915aa5a5439edc3007f13ed32c9e6ba08ba270c
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