]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
narrow down the checks
authorAlan T. DeKok <aland@freeradius.org>
Mon, 29 Jan 2024 19:39:14 +0000 (14:39 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 29 Jan 2024 19:41:54 +0000 (14:41 -0500)
src/lib/util/dict_tokenize.c

index f2aed2c57e25be84249fc53e7cdf02f8cce8c873..e25bcdf934a6a87ce7dd5b1ef03a9e152403f9f0 100644 (file)
@@ -1416,7 +1416,7 @@ static int dict_read_process_member(dict_tokenize_ctx_t *ctx, char **argv, int a
         *      Check if the parent 'struct' is fixed size.  And if
         *      so, complain if we're adding a variable sized member.
         */
-       if (ctx->stack[ctx->stack_depth].da->flags.length &&
+       if (ctx->stack[ctx->stack_depth].da->flags.length && ctx->stack[ctx->stack_depth].da->flags.is_known_width &&
            ((type == FR_TYPE_TLV) || flags.is_known_width ||
             ((type == FR_TYPE_STRING) && !flags.length) ||
             ((type == FR_TYPE_OCTETS) && !flags.length))) {