]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
show which attribute had the issue
authorAlan T. DeKok <aland@freeradius.org>
Tue, 22 Aug 2023 12:43:28 +0000 (08:43 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 22 Aug 2023 14:13:09 +0000 (10:13 -0400)
src/lib/util/struct.c

index 60a6dd628f8bb15cf5c2728c6dbc5145bb9cd88b..0a089bcfc2a72bec76caec34a1584021da03f8e1 100644 (file)
@@ -538,8 +538,8 @@ ssize_t fr_struct_to_network(fr_dbuff_t *dbuff,
         *      nested attributes.
         */
        if (vp && (vp->da->parent != parent)) {
-               fr_strerror_printf("%s: struct encoding is missing previous attributes (parent %s, expecting %s)",
-                                  __FUNCTION__, vp->da->parent->name, parent->name);
+               fr_strerror_printf("%s: struct encoding is missing previous attributes for %s (parent %s, expecting %s)",
+                                  __FUNCTION__, vp->da->name, vp->da->parent->name, parent->name);
                return PAIR_ENCODE_FATAL_ERROR;
        }