]> 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>
Thu, 4 Dec 2025 15:49:43 +0000 (16:49 +0100)
Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
pdns/ws-auth.cc

index 0ae6e2d6e907ca2b2e16089246f4920667ba9a4e..a26c7c63cfbe9d70f549cb6bf133986adf7dae82 100644 (file)
@@ -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);