From: Alan T. DeKok Date: Fri, 25 Aug 2023 11:55:28 +0000 (-0400) Subject: be nice to people X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=05fa24b57fed079306afe79b79061d71463348ee;p=thirdparty%2Ffreeradius-server.git be nice to people --- diff --git a/src/lib/util/dict_tokenize.c b/src/lib/util/dict_tokenize.c index 00f1e074761..8f4d4af4a50 100644 --- a/src/lib/util/dict_tokenize.c +++ b/src/lib/util/dict_tokenize.c @@ -540,6 +540,8 @@ static int dict_process_flag_field(dict_tokenize_ctx_t *ctx, char *name, fr_type return -1; } + if (*value == '&') value++; /* be polite to people */ + /* * Allow cloning of any types, so long as * the types are the same. We do the checks later. @@ -567,6 +569,8 @@ static int dict_process_flag_field(dict_tokenize_ctx_t *ctx, char *name, fr_type return -1; } + if (*value == '&') value++; /* be polite to people */ + *ref = talloc_strdup(ctx->fixup.pool, value); /*