Skip to content
Snippets Groups Projects
Commit 0a4a2d84 authored by Jan Kadlec's avatar Jan Kadlec
Browse files

Detect changes in DNSKEY RRSIGs.

parent 327e7571
No related branches found
No related tags found
1 merge request!174RRSet refactoring - remove RRSIGs, custom memory allocator
......@@ -972,10 +972,17 @@ static int update_dnskeys(const knot_zone_contents_t *zone,
return result;
}
knot_rrset_t *dnskey_rrsig = NULL;
result = knot_rrset_synth_rrsig(dnskeys, rrsigs, &dnskey_rrsig, NULL);
if (result != KNOT_EOK && result != KNOT_ENOENT) {
return result;
}
bool modified = knot_changeset_size(changeset) != changes_before;
if (!modified && dnskeys &&
all_signatures_exist(dnskeys, rrsigs, zone_keys, policy)
) {
bool signatures_exist = all_signatures_exist(dnskeys, dnskey_rrsig,
zone_keys, policy);
knot_rrset_deep_free(&dnskey_rrsig, true, NULL);
if (!modified && dnskeys && signatures_exist) {
return KNOT_EOK;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment