Fix random segfault issue when loading chan_zap. Trying to access a configuration...
authorJoshua Colp <jcolp@digium.com>
Mon, 20 Aug 2007 14:15:30 +0000 (14:15 +0000)
committerJoshua Colp <jcolp@digium.com>
Mon, 20 Aug 2007 14:15:30 +0000 (14:15 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@80023 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index 2bb905c..d7f8646 100644 (file)
@@ -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;