]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
fixup! fixup! fixup! Torvalds style
authorAlessio Podda <alessio@isc.org>
Thu, 4 Sep 2025 00:43:43 +0000 (02:43 +0200)
committerAlessio Podda <alessio@isc.org>
Thu, 4 Sep 2025 00:43:43 +0000 (02:43 +0200)
lib/dns/qpzone.c

index 8182d51093a2fb0f9ebed8c9e672d9c99c8bc4e5..a0f3642b34084b299c3b3430640d4d4df62cfbc6 100644 (file)
@@ -848,16 +848,11 @@ clean_zone_node(qpznode_t *node, uint32_t least_serial) {
                         * serial, and if there are such rdatasets, delete it and any
                         * older versions.
                         */
-                       dns_slabheader_t *dcurrent = NULL;
-                       dns_slabheader_t *dcurrent_down = NULL, *dparent = NULL;
 
-                       dparent = top->header;
-                       for (dcurrent = dparent->down; dcurrent != NULL;
-                            dcurrent = dcurrent_down)
-                       {
-                               dcurrent_down = dcurrent->down;
+                       dns_slabheader_t *dparent = top->header;
+                       SLABHEADER_FOREACH_SAFE(top->header->down, dcurrent, down) {
                                if (dcurrent->serial < least_serial) {
-                                       dparent->down = dcurrent_down;
+                                       dparent->down = dcurrent->down;
                                        dns_slabheader_destroy(&dcurrent);
                                } else {
                                        dparent = dcurrent;