aboutsummaryrefslogtreecommitdiff
path: root/services/mesh.c
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2018-09-10 16:30:18 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2018-09-10 16:30:18 +0000
commit7b6fdf425a9ef38fe9e16779b3af25863104d9c0 (patch)
tree1ac9dd11604f49ca6a2feae373ff4dc7e6fb0002 /services/mesh.c
parent4289761a7b61df4b64c11ada446a187df61e6a1e (diff)
downloadsrc-7b6fdf425a9ef38fe9e16779b3af25863104d9c0.tar.gz
src-7b6fdf425a9ef38fe9e16779b3af25863104d9c0.zip
Vendor import of Unbound 1.7.2.vendor/unbound/1.7.2
Notes
Notes: svn path=/vendor/unbound/dist/; revision=338562 svn path=/vendor/unbound/1.7.2/; revision=338563; tag=vendor/unbound/1.7.2
Diffstat (limited to 'services/mesh.c')
-rw-r--r--services/mesh.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/services/mesh.c b/services/mesh.c
index 3027cef00900..41aba74ab260 100644
--- a/services/mesh.c
+++ b/services/mesh.c
@@ -1173,6 +1173,10 @@ void mesh_query_done(struct mesh_state* mstate)
while((c = mstate->cb_list) != NULL) {
/* take this cb off the list; so that the list can be
* changed, eg. by adds from the callback routine */
+ if(!mstate->reply_list && mstate->cb_list && !c->next) {
+ /* was a reply state, not anymore */
+ mstate->s.env->mesh->num_reply_states--;
+ }
mstate->cb_list = c->next;
if(!mstate->reply_list && !mstate->cb_list &&
mstate->super_set.count == 0)