]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Report correct type in error message
authorNick Porter <nick@portercomputing.co.uk>
Wed, 6 Jul 2022 13:28:08 +0000 (14:28 +0100)
committerNick Porter <nick@portercomputing.co.uk>
Wed, 6 Jul 2022 13:28:08 +0000 (14:28 +0100)
src/lib/util/dict_validate.c

index e4fa2964573853e1f864fb57f6897bfb63b8dead..57b7c76b3b06089fe938bbdd97427a3890672030 100644 (file)
@@ -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;
        }