From: Ondřej Surý Date: Thu, 30 Apr 2026 08:31:47 +0000 (+0200) Subject: [9.20] fix: dev: free per-command rndc state when response serialisation fails X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=070b394f53006cbbf12743afe115b6720bcbf030;p=thirdparty%2Fbind9.git [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 --- 070b394f53006cbbf12743afe115b6720bcbf030