From: Mark Andrews Date: Wed, 11 Mar 2026 21:51:51 +0000 (+1100) Subject: Set length in dns_rdata_in_dhcid structure X-Git-Tag: v9.20.21~8^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f5acdbb783d60a7252c3cd182cafaf4f2d2f448c;p=thirdparty%2Fbind9.git Set length in dns_rdata_in_dhcid structure tostruct_in_dhcid was not setting the length field in the dns_rdata_in_dhcid structure. (cherry picked from commit cfa21d1e8bfa1efc952ae3e415d30e492856e1ea) --- diff --git a/lib/dns/rdata/in_1/dhcid_49.c b/lib/dns/rdata/in_1/dhcid_49.c index 7486ca86bd0..6049cc5fc52 100644 --- a/lib/dns/rdata/in_1/dhcid_49.c +++ b/lib/dns/rdata/in_1/dhcid_49.c @@ -149,6 +149,7 @@ tostruct_in_dhcid(ARGS_TOSTRUCT) { dns_rdata_toregion(rdata, ®ion); dhcid->dhcid = mem_maybedup(mctx, region.base, region.length); + dhcid->length = region.length; dhcid->mctx = mctx; return ISC_R_SUCCESS; }