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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user