From: Miod Vallat Date: Thu, 4 Dec 2025 15:49:43 +0000 (+0100) Subject: Logic buglet found during review. X-Git-Tag: auth-5.0.2^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd1537ef5e6d6499a604695f5eaac05db7bc5c48;p=thirdparty%2Fpdns.git Logic buglet found during review. Signed-off-by: Miod Vallat (cherry picked from commit e13f3db78c7acaa2cf87fa2beeaef6965c7251fa) --- diff --git a/pdns/ws-auth.cc b/pdns/ws-auth.cc index 21c3b4f7ae..cf0ebf486f 100644 --- a/pdns/ws-auth.cc +++ b/pdns/ws-auth.cc @@ -2615,7 +2615,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);