Skip to content
Snippets Groups Projects
Commit 9c870427 authored by Lubos Slovak's avatar Lubos Slovak
Browse files

Not counting empty RRSets into RRSet count in node

Was causing problems when RRSet was removed but its RRSIG remained
in the zone.
parent af110b61
No related branches found
No related tags found
No related merge requests found
......@@ -111,7 +111,9 @@ int knot_node_add_rrset_no_merge(knot_node_t *node, knot_rrset_t *rrset)
}
node->rrset_tree = p;
node->rrset_tree[node->rrset_count] = rrset;
++node->rrset_count;
if (knot_rrset_rdata_rr_count(rrset) > 0) {
++node->rrset_count;
}
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