mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 00:19:59 -04:00
[9.20] 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.20' into 'bind-9.20' See merge request isc-projects/bind9!11672
This commit is contained in:
commit
64e8807154
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue