]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Logic buglet found during review.
authorMiod Vallat <miod.vallat@powerdns.com>
Thu, 4 Dec 2025 15:49:43 +0000 (16:49 +0100)
committerMiod Vallat <miod.vallat@powerdns.com>
Fri, 5 Dec 2025 14:09:19 +0000 (15:09 +0100)
Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
(cherry picked from commit e13f3db78c7acaa2cf87fa2beeaef6965c7251fa)

pdns/ws-auth.cc

index 21c3b4f7aed2f805ff7283f8f6c632263391bd83..cf0ebf486f729067aae0ace55361f9ac842c46b9 100644 (file)
@@ -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);