mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-12 20:20:00 -04:00
Merge branch '373-generic_tostruct_tlsa-incorrectly-initialises-common-structure' into 'master'
Resolve "generic_tostruct_tlsa incorrectly initialises common structure." Closes #373 See merge request isc-projects/bind9!460
This commit is contained in:
commit
c08e60adcb
1 changed files with 5 additions and 4 deletions
|
|
@ -207,12 +207,13 @@ generic_tostruct_tlsa(ARGS_TOSTRUCT) {
|
|||
dns_rdata_tlsa_t *tlsa = target;
|
||||
isc_region_t region;
|
||||
|
||||
REQUIRE(target != NULL);
|
||||
REQUIRE(rdata != NULL);
|
||||
REQUIRE(rdata->length != 0);
|
||||
|
||||
tlsa->common.rdclass = rdata->rdclass;
|
||||
tlsa->common.rdtype = rdata->type;
|
||||
ISC_LINK_INIT(&tlsa->common, link);
|
||||
REQUIRE(tlsa != NULL);
|
||||
REQUIRE(tlsa->common.rdclass == rdata->rdclass);
|
||||
REQUIRE(tlsa->common.rdtype == rdata->type);
|
||||
REQUIRE(!ISC_LINK_LINKED(&tlsa->common, link));
|
||||
|
||||
dns_rdata_toregion(rdata, ®ion);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue