]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
[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)
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


Trivial merge