From: Alan T. DeKok Date: Tue, 9 Dec 2025 19:52:24 +0000 (-0500) Subject: we know how big IP addresses are in DNS X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d453a993fb4cff9f2458c13f8d0a5c2616a474e2;p=thirdparty%2Ffreeradius-server.git we know how big IP addresses are in DNS --- diff --git a/src/protocols/dns/base.c b/src/protocols/dns/base.c index e8306c84d8a..79fe65c108f 100644 --- a/src/protocols/dns/base.c +++ b/src/protocols/dns/base.c @@ -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; }