From 89e875f0147231a4e54589780bbf6e64a5f9bf4e Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Mon, 19 May 2025 16:24:58 +0200 Subject: [PATCH] Trust inet_pton to validate IPv6 addresses and nothing more. Fixes #15569 --- pdns/pdnsutil.cc | 2 +- pdns/ws-auth.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pdns/pdnsutil.cc b/pdns/pdnsutil.cc index 9ec564d443..9240937b71 100644 --- a/pdns/pdnsutil.cc +++ b/pdns/pdnsutil.cc @@ -479,7 +479,7 @@ static int checkZone(DNSSECKeeper &dk, UeberBackend &B, const ZoneName& zone, co } } else { struct in6_addr tmpbuf; - if (inet_pton(AF_INET6, rr.content.c_str(), &tmpbuf) != 1 || rr.content.find('.') != string::npos) { + if (inet_pton(AF_INET6, rr.content.c_str(), &tmpbuf) != 1) { cout<<"[Warning] Following record is not a valid IPv6 address: "<