]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
fix: dev: free per-command rndc state when response serialisation fails
authorOndřej Surý <ondrej@isc.org>
Thu, 30 Apr 2026 07:33:00 +0000 (09:33 +0200)
committerOndřej Surý <ondrej@isc.org>
Thu, 30 Apr 2026 07:33:00 +0000 (09:33 +0200)
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

Merge branch '5913-controlconf-control-respond-cleanup-leak' into 'main'

See merge request isc-projects/bind9!11915


Trivial merge