]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
remove restrictions on parallel
authorAlan T. DeKok <aland@freeradius.org>
Wed, 19 Apr 2017 19:40:47 +0000 (15:40 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 19 Apr 2017 19:40:47 +0000 (15:40 -0400)
the contents can now be anything :(

src/main/unlang_compile.c

index 8e99684e3c95e074034f64cadac066958002aa5a..3ffd4087f0cc3fe0d128c300e99b3a6084c5d1f9 100644 (file)
@@ -2538,8 +2538,6 @@ static unlang_t *compile_parallel(unlang_t *parent, unlang_compile_t *unlang_ctx
                                      unlang_group_type_t group_type, unlang_group_type_t parentgroup_type, unlang_type_t mod_type)
 {
        unlang_t *c;
-       unlang_t *child;
-       unlang_group_t *g;
 
        /*
         *      No children?  Die!
@@ -2559,26 +2557,6 @@ static unlang_t *compile_parallel(unlang_t *parent, unlang_compile_t *unlang_ctx
 
        c->name = c->debug_name = unlang_ops[c->type].name;
 
-       /*
-        *      Check that all children are of the new type.
-        */
-       g = unlang_generic_to_group(c);
-
-       for (child = g->children; child != NULL; child = child->next) {
-               unlang_module_call_t *single;
-
-               if (child->type != UNLANG_TYPE_MODULE_CALL) {
-                       cf_log_err_cs(cs, "%s sections cannot a child of type %s", unlang_ops[mod_type].name, child->debug_name);
-                       return NULL;
-               }
-
-               single = unlang_generic_to_module_call(child);
-               if ((single->module_instance->module->type & RLM_TYPE_RESUMABLE) == 0) {
-                       cf_log_err_cs(cs, "%s sections cannot a non-resumable child of %s", unlang_ops[mod_type].name, child->debug_name);
-                       return NULL;
-               }
-       }
-
        return c;
 }