Commit 43c6f0d8 authored by Mark Andrews's avatar Mark Andrews
Browse files

remove re-initalisation of common structure

(cherry picked from commit 6e06d3e7)
parent 5a059f2f
Pipeline #3006 passed with stages
in 6 minutes and 18 seconds
......@@ -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, &region);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment