From: Alan T. DeKok Date: Sun, 17 Mar 2013 14:55:55 +0000 (-0400) Subject: Generalize the "ignore module" code X-Git-Tag: release_3_0_0_beta1~710 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=34a93cbcc2f5260dcf76bcfaf66b341b3c1bdf2b;p=thirdparty%2Ffreeradius-server.git Generalize the "ignore module" code if -foo is in a subsection, ignore it, too --- diff --git a/src/main/modcall.c b/src/main/modcall.c index ff9d031590f..a5871325e18 100644 --- a/src/main/modcall.c +++ b/src/main/modcall.c @@ -2344,6 +2344,11 @@ static modcallable *do_compile_modgroup(modcallable *parent, grouptype, &junk); if (!single) { + if (cf_item_is_pair(ci) && + cf_pair_attr(cf_itemtopair(ci))[0] == '-') { + continue; + } + cf_log_err(ci, "Failed to parse \"%s\" entry.", attr);