mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 20:04:50 +00:00
Fix random segfault issue when loading chan_zap. Trying to access a configuration structure that has already been destroyed is bad, mmmk?
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@80023 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -12733,7 +12733,7 @@ static int setup_zap(int reload)
|
||||
if (ucfg) {
|
||||
char *cat;
|
||||
const char *chans;
|
||||
process_zap(&base_conf, ast_variable_browse(cfg, "general"), 1, 1);
|
||||
process_zap(&base_conf, ast_variable_browse(ucfg, "general"), 1, 1);
|
||||
for (cat = ast_category_browse(ucfg, NULL); cat ; cat = ast_category_browse(ucfg, cat)) {
|
||||
if (!strcasecmp(cat, "general"))
|
||||
continue;
|
||||
|
Reference in New Issue
Block a user