From: Alan T. DeKok Date: Thu, 21 Feb 2013 00:37:54 +0000 (-0500) Subject: Check for !cs before expanding variables X-Git-Tag: release_3_0_0_beta1~968 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=edd3b687a09377731429c1e991008e5d590e9941;p=thirdparty%2Ffreeradius-server.git Check for !cs before expanding variables --- diff --git a/src/main/conffile.c b/src/main/conffile.c index 3e6bcbbc33f..9e0f960bd95 100644 --- a/src/main/conffile.c +++ b/src/main/conffile.c @@ -840,12 +840,12 @@ int cf_item_parse(CONF_SECTION *cs, const char *name, * expanded automagically when the configuration * file was read. */ - if (value == dflt) { + if (cs && (value == dflt)) { char buffer[8192]; int lineno = 0; - if (cs) lineno = cs->item.lineno; + lineno = cs->item.lineno; /* * FIXME: sizeof(buffer)?