]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
be nice to people
authorAlan T. DeKok <aland@freeradius.org>
Fri, 25 Aug 2023 11:55:28 +0000 (07:55 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 25 Aug 2023 11:55:28 +0000 (07:55 -0400)
src/lib/util/dict_tokenize.c

index 00f1e07476141fcd6c8534379069bb8428b932f0..8f4d4af4a50df3c7f742c5ad7540ce27fc42cd62 100644 (file)
@@ -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);
 
                        /*