Skip to content
Snippets Groups Projects
Commit 761a5028 authored by Jan Kadlec's avatar Jan Kadlec Committed by Gerrit Code Review
Browse files

Fixed bug in DDNS - removing non-existent RRs.

- Wrong log message was printed

Change-Id: I227b25704e254267350f0e565c630319b47360b2
parent a9bbafe9
No related branches found
No related tags found
No related merge requests found
......@@ -2034,7 +2034,11 @@ static int knot_ddns_process_rem_rrset(const knot_rrset_t *rrset,
dbg_ddns_detail("Removing RRSet of type: %d\n", type);
*removed = knot_node_remove_rrset(node, type);
removed_count = 1;
if (*removed != NULL) {
removed_count = 1;
} else {
removed_count = 0;
}
}
dbg_ddns_detail("Removed: %p (first item: %p), removed count: %zu\n",
......
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