From: Alan T. DeKok Date: Fri, 9 Apr 2021 12:20:42 +0000 (-0400) Subject: flags are exclusive X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79ed31c664552f9f191aa42894092ff7db8a6e3c;p=thirdparty%2Ffreeradius-server.git flags are exclusive --- diff --git a/src/lib/util/dict_tokenize.c b/src/lib/util/dict_tokenize.c index 9aa4ccdf78..81ef255e7f 100644 --- a/src/lib/util/dict_tokenize.c +++ b/src/lib/util/dict_tokenize.c @@ -300,6 +300,11 @@ static int dict_process_flag_field(dict_tokenize_ctx_t *ctx, char *name, fr_type subtype = fr_table_value_by_str(ctx->dict->subtype_table, key, -1); if (subtype >= 0) { + if (flags->subtype != 0) { + fr_strerror_printf("Conflicting flag '%s'", key); + return -1; + } + flags->subtype = subtype; break; }