]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Revert afe57485. Fixes #442
authorAlan T. DeKok <aland@freeradius.org>
Fri, 4 Oct 2013 13:27:32 +0000 (09:27 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 4 Oct 2013 20:36:27 +0000 (16:36 -0400)
src/main/modcall.c

index 44d9c868a65f7a8c13b72e6d8775ebede74131e2..dac7c7c575e7f879efa160d298dab9e2fdc8cc24 100644 (file)
@@ -1895,8 +1895,7 @@ static modcallable *do_compile_modsingle(modcallable *parent,
 
                        *modname = name2;
 
-                       if (!parent ||
-                           (parent->type != MOD_SWITCH)) {
+                       if (!parent) {
                                cf_log_err(ci, "\"case\" statements may only appear within a \"switch\" section");
                                return NULL;
                        }