From: Alan T. DeKok Date: Mon, 29 Jan 2024 19:39:14 +0000 (-0500) Subject: narrow down the checks X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=65c8dcaf2b5f33cf172016858d918f6d2a54c4bd;p=thirdparty%2Ffreeradius-server.git narrow down the checks --- diff --git a/src/lib/util/dict_tokenize.c b/src/lib/util/dict_tokenize.c index f2aed2c57e2..e25bcdf934a 100644 --- a/src/lib/util/dict_tokenize.c +++ b/src/lib/util/dict_tokenize.c @@ -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))) {