]> git.ipfire.org Git - thirdparty/bind9.git/commit
[9.20] fix: dev: free per-command rndc state when response serialisation fails
authorOndřej Surý <ondrej@isc.org>
Thu, 30 Apr 2026 08:31:47 +0000 (10:31 +0200)
committerOndřej Surý <ondrej@isc.org>
Thu, 30 Apr 2026 08:31:47 +0000 (10:31 +0200)
commit070b394f53006cbbf12743afe115b6720bcbf030
tree187091e018eb2bd7ae1a8306fb77c2bf32ecfc90
parent3728b405ea28ff66615b2cdb617c67739b6e4416
parent88537d6d84034ff48f9dda11d877c6e1c5f241f9
[9.20] fix: dev: free per-command rndc state when response serialisation fails

When isccc_cc_towire failed while building an rndc reply,
control_respond returned without releasing the per-command request,
response, HMAC secret copy, and text buffer.  They were eventually
freed when the connection closed, but until then the HMAC key copy
stayed in named's memory.  The failure path now goes through the
same cleanup label as every other error.

Closes #5913

Backport of MR !11915

Merge branch 'backport-5913-controlconf-control-respond-cleanup-leak-9.20' into 'bind-9.20'

See merge request isc-projects/bind9!11919