]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Do not skip cleanup for origin nodes in qpzone
authorAlessio Podda <alessio@isc.org>
Tue, 19 Aug 2025 12:12:46 +0000 (14:12 +0200)
committerAlessio Podda <alessio@isc.org>
Tue, 19 Aug 2025 12:18:19 +0000 (14:18 +0200)
Per @each, skipping cleanup of (|nsec_|nsec3_)origin nodes in
qpznode_release in qpzone.c is a residual from RBTDB, but it is
unnecessary or at most a performance optimization with QP.

Remove it to make it further changes easier to qpznode_release easier.

lib/dns/qpzone.c

index 53503c766823a64406f506028f1065a3a2b6f3c3..43f28a2b3c872c767ec18bbe9ea80a1883440db3 100644 (file)
@@ -970,10 +970,7 @@ qpznode_release(qpzonedb_t *qpdb, qpznode_t *node, uint32_t least_serial,
        }
 
        /* Handle easy and typical case first. */
-       if (!node->dirty &&
-           (node->data != NULL || node == qpdb->origin ||
-            node == qpdb->nsec_origin || node == qpdb->nsec3_origin))
-       {
+       if (!node->dirty && node->data != NULL) {
                goto unref;
        }