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

Merge branch 'marka-set-dhcid-length' into 'main'

See merge request isc-projects/bind9!11668
This commit is contained in:
Mark Andrews 2026-03-12 20:25:27 +11:00
commit b218e7d521

View file

@ -149,6 +149,7 @@ tostruct_in_dhcid(ARGS_TOSTRUCT) {
dns_rdata_toregion(rdata, &region);
dhcid->dhcid = mem_maybedup(mctx, region.base, region.length);
dhcid->length = region.length;
dhcid->mctx = mctx;
return ISC_R_SUCCESS;
}