]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Set length in dns_rdata_in_dhcid structure
authorMark Andrews <marka@isc.org>
Wed, 11 Mar 2026 21:51:51 +0000 (08:51 +1100)
committerMark Andrews <marka@isc.org>
Thu, 12 Mar 2026 03:08:32 +0000 (14:08 +1100)
tostruct_in_dhcid was not setting the length field in the
dns_rdata_in_dhcid structure.

lib/dns/rdata/in_1/dhcid_49.c

index 7486ca86bd04789231609fd77e1d1e2538be0c73..6049cc5fc52d3cc7e6403033abe89cdf15e8138d 100644 (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;
 }