]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Generalize the "ignore module" code
authorAlan T. DeKok <aland@freeradius.org>
Sun, 17 Mar 2013 14:55:55 +0000 (10:55 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 17 Mar 2013 14:55:55 +0000 (10:55 -0400)
if -foo is in a subsection, ignore it, too

src/main/modcall.c

index ff9d031590f99ba9b7680f6ed5489132307749d7..a5871325e18b838ede2b01b1f0b54299144d3017 100644 (file)
@@ -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);