]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
we know how big IP addresses are in DNS
authorAlan T. DeKok <aland@freeradius.org>
Tue, 9 Dec 2025 19:52:24 +0000 (14:52 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 9 Dec 2025 19:52:56 +0000 (14:52 -0500)
src/protocols/dns/base.c

index e8306c84d8ab8946d316a370984ec0cbeafb31de..79fe65c108fed39b0028624595cee1b2de609217 100644 (file)
@@ -465,6 +465,15 @@ static bool attr_valid(fr_dict_attr_t *da)
                da->flags.is_known_width = true;        /* Lie so we don't trip up the main validation checks */
        }
 
+       switch (da->type) {
+       case FR_TYPE_IP:
+               da->flags.is_known_width = true;
+               break;
+
+       default:
+               break;
+       }
+
        return true;
 }