]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_config_sqlite3: Fix crash when loading with invalid config 57/4957/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:17:27 +0000 (13:17 -0500)
commit5b7c6678aedfe9cb196442b9170870d5ac352402
tree4839eb3483d258764fe35a2ecbe23c00d6d8f849
parent2b10ba807431acc06502575a2928ba957d2726c8
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