[9.18] fix: nil: Set length in dns_rdata_in_dhcid structure

tostruct_in_dhcid was not setting the length field in the
dns_rdata_in_dhcid structure. This has been fixed.

Fixes #5796

Backport of MR !11668

Merge branch 'backport-marka-set-dhcid-length-9.18' into 'bind-9.18'

See merge request isc-projects/bind9!11673
This commit is contained in:
Mark Andrews 2026-03-12 21:05:59 +11:00
commit 3d9ebc9614

View file

@ -153,7 +153,7 @@ tostruct_in_dhcid(ARGS_TOSTRUCT) {
if (dhcid->dhcid == NULL) {
return ISC_R_NOMEMORY;
}
dhcid->length = region.length;
dhcid->mctx = mctx;
return ISC_R_SUCCESS;
}