From 3714bab653e46876455d8b1e92104e0337ddcde9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Date: Mon, 13 Jan 2025 15:01:55 +0100 Subject: [PATCH] fixup! pdnsutil {add-record,delete-rrset}: Don't append ZONE if NAME ends with . or ZONE --- pdns/pdnsutil.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/pdnsutil.cc b/pdns/pdnsutil.cc index 9e9f0be581be..92d010b0d786 100644 --- a/pdns/pdnsutil.cc +++ b/pdns/pdnsutil.cc @@ -1741,7 +1741,7 @@ static int deleteRRSet(const std::string& zone_, const std::string& name_, const DNSName name; if (name_ == "@") { name = zone; - } else if (isCanonical(name_) || boost::ends_with(name_, zone)) { + } else if (isCanonical(name_) || boost::ends_with(name_, zone_)) { name = DNSName(name_); } else { cerr << "Name " << name_ << "' does not fit into zone '" << zone << "'. Interpreting as relative name." << endl;