From: W.C.A. Wijngaards Date: Tue, 9 Jan 2024 11:12:14 +0000 (+0100) Subject: - fast-reload, in hints_swap_tree also swap the node count of the trees. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b567a5c07ebc43f9c4ba258f879efbc863f7496c;p=thirdparty%2Funbound.git - fast-reload, in hints_swap_tree also swap the node count of the trees. --- diff --git a/iterator/iter_hints.c b/iterator/iter_hints.c index ce2741eaf..5a95b78cd 100644 --- a/iterator/iter_hints.c +++ b/iterator/iter_hints.c @@ -580,6 +580,9 @@ void hints_swap_tree(struct iter_hints* hints, struct iter_hints* data) { rbnode_type* oldroot = hints->tree.root; + size_t oldcount = hints->tree.count; hints->tree.root = data->tree.root; + hints->tree.count = data->tree.count; data->tree.root = oldroot; + data->tree.count = oldcount; }