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

Fixed reallocation of changes' RRSets array.

refs #2081 @20m
parent 45b2d722
Branches
Tags
No related merge requests found
......@@ -1238,6 +1238,9 @@ static int xfrin_changes_check_rrsets(knot_rrset_t ***rrsets,
}
int new_count = (*allocated == 0) ? 2 : *allocated * 2;
while (new_count < count + to_add) {
new_count *= 2;
}
/* Allocate new memory block. */
knot_rrset_t **rrsets_new = malloc(new_count * sizeof(knot_rrset_t *));
......
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