]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
change error message to match the types that can have explicit length (#4456)
authorJames Jones <jejones3141@gmail.com>
Fri, 8 Apr 2022 19:23:44 +0000 (14:23 -0500)
committerGitHub <noreply@github.com>
Fri, 8 Apr 2022 19:23:44 +0000 (15:23 -0400)
src/lib/util/dict_tokenize.c

index 3deec8e6586ed4a6a76e342d1a198a3818bdf64c..67b013ac538b58f98a184bc38ad2ae36b3ad90e3 100644 (file)
@@ -256,7 +256,7 @@ static int dict_process_type_field(dict_tokenize_ctx_t *ctx, char const *name, f
                        flags->flag_byte_offset = length;
 
                } else {
-                       fr_strerror_const("Only 'octets' types can have a 'length' parameter");
+                       fr_strerror_const("Only 'octets', 'string', 'struct', or 'bit' types can have a 'length' parameter");
                        return -1;
                }