]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Ensure arrays are zero alloced
authorNick Porter <nick@portercomputing.co.uk>
Mon, 6 Jun 2022 13:04:42 +0000 (14:04 +0100)
committerNick Porter <nick@portercomputing.co.uk>
Mon, 6 Jun 2022 13:12:12 +0000 (14:12 +0100)
src/lib/util/types.c

index a94cb002a9023a82ad7f87acdd4ee248ce085281..77be3744efd04d3bd83ee2523333a0b10e9b8e73 100644 (file)
@@ -616,5 +616,5 @@ void **fr_type_array_alloc(TALLOC_CTX *ctx, fr_type_t type, size_t count)
                return NULL;
        }
 
-       return _talloc_array(ctx, fr_type_to_c_size[type], count, c_type);
+       return _talloc_zero_array(ctx, fr_type_to_c_size[type], count, c_type);
  }