]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Remove ACL detach deadcode from dyndb 12333/head
authorColin Vidal <colin@isc.org>
Wed, 1 Jul 2026 08:30:53 +0000 (10:30 +0200)
committerColin Vidal <colin@isc.org>
Wed, 8 Jul 2026 06:02:44 +0000 (08:02 +0200)
Since `188aa43e48379572ffa758e45333c67214917d39`, `dns_acl_any()` can't
fail (and thus would always set memory to its target). Removing deadcode
that would detach the ACL if `dns_acl_any()` would return some error
while the ACL would be created and attached.

bin/tests/system/dyndb/driver/zone.c

index 388aeae975c0c07e5fb2bcb0e9b05d3876457202..d366a8ef67dfca9b22f04fc6f672cf38231ccf24 100644 (file)
@@ -103,9 +103,6 @@ cleanup:
                }
                dns_zone_detach(&raw);
        }
-       if (acl_any != NULL) {
-               dns_acl_detach(&acl_any);
-       }
 
        return result;
 }