From: Nick Porter Date: Wed, 6 Jul 2022 13:28:08 +0000 (+0100) Subject: Report correct type in error message X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cafc86aa7eef046dd2ce64f80ba80dc5c1bffcd4;p=thirdparty%2Ffreeradius-server.git Report correct type in error message --- diff --git a/src/lib/util/dict_validate.c b/src/lib/util/dict_validate.c index e4fa2964573..57b7c76b3b0 100644 --- a/src/lib/util/dict_validate.c +++ b/src/lib/util/dict_validate.c @@ -608,7 +608,7 @@ bool dict_attr_flags_valid(fr_dict_t *dict, fr_dict_attr_t const *parent, default: fr_strerror_printf("Attributes of type '%s' cannot have child attributes", - fr_type_to_str(type)); + fr_type_to_str(parent->type)); return false; }