]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_config_sqlite3: Fix crash when loading with invalid config 58/4958/2
authorSean Bright <sean.bright@gmail.com>
Wed, 15 Feb 2017 17:55:19 +0000 (12:55 -0500)
committerSean Bright <sean.bright@gmail.com>
Sat, 18 Feb 2017 18:19:30 +0000 (12:19 -0600)
commit14b1843fb603609b6fd5956cee49f15a53ca6466
tree3ec032b9454b6ffe90dcc8ff802d52c0e776ebde
parentbba48a56620afd6c92760eba8a046513fbb227ab
res_config_sqlite3: Fix crash when loading with invalid config

When ast_config_load() fails with CONFIG_STATUS_FILEINVALID, it has
already destroyed the ast_config struct for us. Trying to do it again
results in a crash.

Change-Id: If6a5c0ca718ad428e01a1fb25beb209a9ac18bc6
res/res_config_sqlite3.c