From: Alan T. DeKok Date: Sun, 17 Feb 2013 16:45:43 +0000 (-0500) Subject: Don't expand variables if cs==NULL X-Git-Tag: release_2_2_1~166 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e809da76ef5da88630b446c18ed6f761e023db6;p=thirdparty%2Ffreeradius-server.git Don't expand variables if cs==NULL Closes Coverity #720373 --- diff --git a/src/main/conffile.c b/src/main/conffile.c index 7982aaa7d4c..a63ca3371ad 100644 --- a/src/main/conffile.c +++ b/src/main/conffile.c @@ -969,13 +969,11 @@ int cf_item_parse(CONF_SECTION *cs, const char *name, * expanded automagically when the configuration * file was read. */ - if (value == dflt) { + if ((value == dflt) && cs) { char buffer[8192]; int lineno = 0; - if (cs) lineno = cs->item.lineno; - /* * FIXME: sizeof(buffer)? */