From: Joshua Colp Date: Mon, 20 Aug 2007 14:15:30 +0000 (+0000) Subject: Fix random segfault issue when loading chan_zap. Trying to access a configuration... X-Git-Tag: 1.6.0-beta1~3^2~1677 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=65e4c80d48817dbdb024d2e1d07e70db792e2287;p=thirdparty%2Fasterisk.git 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 --- diff --git a/channels/chan_zap.c b/channels/chan_zap.c index 2bb905c603..d7f86466eb 100644 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -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;