Commit 133e708f authored by Daniel Salzman's avatar Daniel Salzman

updates: return KNOT_ENOENT if removing not existing rrset

parent bbd0aa72
......@@ -251,6 +251,9 @@ int zone_update_remove_rrset(zone_update_t *update, knot_dname_t *owner, uint16_
const zone_node_t *node = zone_contents_find_node(update->new_cont, owner);
if (node != NULL) {
knot_rrset_t rrset = node_rrset(node, type);
if (rrset.owner == NULL) {
int ret = changeset_add_removal(&update->change, &rrset,
if (ret != KNOT_EOK) {
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