]> git.ipfire.org Git - thirdparty/bind9.git/commit
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)
commitbf7ee390bad0ce22d977ec7f5dffdc1dd7daaaae
tree91f2fd55198d73a9a51bdbe8fab66c04951b8b70
parent28025ceff89084d2a58f9c7337417a2ecaab21a9
parent1b681dfa2ff408f40ca5e3453e336ff8864af27c
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

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

See merge request isc-projects/bind9!11915