From e13f3db78c7acaa2cf87fa2beeaef6965c7251fa Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Thu, 4 Dec 2025 16:49:43 +0100 Subject: [PATCH] Logic buglet found during review. Signed-off-by: Miod Vallat --- pdns/ws-auth.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/ws-auth.cc b/pdns/ws-auth.cc index 0ae6e2d6e9..a26c7c63cf 100644 --- a/pdns/ws-auth.cc +++ b/pdns/ws-auth.cc @@ -2678,7 +2678,7 @@ static void patchZone(UeberBackend& backend, const ZoneName& zonename, DomainInf { auto operationType2 = operationType == EXTEND ? PRUNE : operationType; if (seen.count({qname, qtype, operationType2}) != 0) { - if (operationType == EXTEND) { + if (operationType2 == PRUNE) { changetype = "EXTEND/PRUNE"; // for the sake of the error message } throw ApiException("Duplicate RRset " + qname.toString() + " IN " + qtype.toString() + " with changetype: " + changetype); -- 2.47.3