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

Fixed wrong size in memmove call in node_remove_rrset.

parent a2497cb3
Branches
Tags
No related merge requests found
......@@ -237,7 +237,7 @@ knot_rrset_t *knot_node_remove_rrset(knot_node_t *node, uint16_t type)
for (; i < node->rrset_count; ++i) {
if (rrs[i]->type == type) {
ret = rrs[i];
memmove(rrs + i, rrs + i + 1, node->rrset_count - i - 1);
memmove(rrs + i, rrs + i + 1, (node->rrset_count - i - 1) * sizeof(knot_rrset_t *));
--node->rrset_count;
return ret;
}
......
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