]> git.ipfire.org Git - thirdparty/bind9.git/commit
[9.20] fix: dev: Tidy up the cleanup path in check_signer()
authorOndřej Surý <ondrej@isc.org>
Tue, 5 May 2026 06:20:19 +0000 (08:20 +0200)
committerOndřej Surý <ondrej@isc.org>
Tue, 5 May 2026 06:20:19 +0000 (08:20 +0200)
commitcf517f73d5b36b6ee26ec238e2914644fb20e64b
treede32414841fefca97b6955c31fe0bd8691764f45
parentbf4cdca7e92b46af9f263a539abc4e9418efa83c
parent19f44a0aa376bace89d8ffaece546e1fc891a763
[9.20] fix: dev: Tidy up the cleanup path in check_signer()

When check_signer() processed a DNSKEY whose public-key data could not
be parsed, the early return on the parse error skipped the cleanup of
the cloned signature rdataset.  In every code path that currently
reaches this function the cloned rdataset holds no resources, so no
memory was actually leaked, but the cleanup is restructured so the
parse and the iteration cannot diverge again.

Closes #5869

Merge branch '5869-fix-memory-leak-in-check_signer-9.20' into 'bind-9.20'

See merge request isc-projects/bind9!11957