Don't go to next sibling on empty case. Fixes #1274
authorAlan T. DeKok <aland@freeradius.org>
Mon, 28 Sep 2015 13:28:43 +0000 (09:28 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 28 Sep 2015 13:28:43 +0000 (09:28 -0400)
src/main/modcall.c

index f2e15ee..ad148a4 100644 (file)
@@ -619,6 +619,11 @@ redo:
                 *      MOD_GROUP.
                 */
                if (!g->children) {
+                       if (c->type == MOD_CASE) {
+                               result = RLM_MODULE_NOOP;
+                               goto calculate_result;
+                       }
+
                        RDEBUG2("%.*s%s %s { ... } # empty sub-section is ignored",
                                depth + 1, modcall_spaces, group_name[c->type], c->name);
                        goto next_sibling;