]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Accidentally comitted
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 17 Oct 2019 12:55:50 +0000 (08:55 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 17 Oct 2019 12:55:50 +0000 (08:55 -0400)
src/lib/unlang/parallel.c

index 83155ef775422479e2f3c44f08adb13f7486f98e..4834bfd37fc8d9dc29058c0d315f88c35efd4cb4 100644 (file)
@@ -397,10 +397,10 @@ static unlang_action_t unlang_parallel(REQUEST *request, rlm_rcode_t *presult)
        /*
         *      Allocate an array for the children.
         */
-       frame->state = state = talloc_zero_array(request,
-                                                sizeof(unlang_parallel_state_t) +
-                                                sizeof(state->children[0]) *
-                                                g->num_children);
+       frame->state = state = talloc_zero_size(request,
+                                               sizeof(unlang_parallel_state_t) +
+                                               sizeof(state->children[0]) *
+                                               g->num_children);
        if (!state) {
                *presult = RLM_MODULE_FAIL;
                return UNLANG_ACTION_CALCULATE_RESULT;