[asterisk-commits] file: trunk r80023 - /trunk/channels/chan_zap.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Aug 20 09:15:31 CDT 2007
Author: file
Date: Mon Aug 20 09:15:30 2007
New Revision: 80023
URL: http://svn.digium.com/view/asterisk?view=rev&rev=80023
Log:
Fix random segfault issue when loading chan_zap. Trying to access a configuration structure that has already been destroyed is bad, mmmk?
Modified:
trunk/channels/chan_zap.c
Modified: trunk/channels/chan_zap.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_zap.c?view=diff&rev=80023&r1=80022&r2=80023
==============================================================================
--- trunk/channels/chan_zap.c (original)
+++ trunk/channels/chan_zap.c Mon Aug 20 09:15:30 2007
@@ -12733,7 +12733,7 @@
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;
More information about the asterisk-commits
mailing list