Commit fab123c2 authored by Jan Kadlec's avatar Jan Kadlec

fixed getting wrong rdata.

parent 67c65564
......@@ -762,6 +762,7 @@ static int remove_invalid_dnskeys(const knot_rrset_t *soa,
uint16_t dnskeys_rdata_count = dnskeys->rrs.rr_count;
for (uint16_t i = 0; i < dnskeys_rdata_count; i++) {
dnskeys_data = knot_rdataset_at(&dnskeys->rrs, i);
uint8_t *rdata = knot_rdata_data(dnskeys_data);
uint16_t rdata_size = knot_rdata_rdlen(dnskeys_data);
uint16_t keytag = knot_keytag(rdata, rdata_size);
......
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