]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Remove unneeded was_mesh_reply check.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Mon, 20 Apr 2020 13:35:45 +0000 (15:35 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Mon, 20 Apr 2020 13:35:45 +0000 (15:35 +0200)
doc/Changelog
services/mesh.c

index 4b32207cda4c81b4d5199c4b675029f7cdf40c59..0fa60aec02cd5be3605414e89ba94f981edc7ad9 100644 (file)
@@ -1,6 +1,7 @@
 20 April 2020: Wouter
        - Fix #222: --enable-rpath, fails to rpath python lib.
        - Fix for count of reply states in the mesh.
+       - Remove unneeded was_mesh_reply check.
 
 17 April 2020: George
        - Add SNI support on more TLS connections (fixes #193).
index f484df9344b97e2ebd6e1e0e78cd5ce108103bd3..4bc4341c497f78dd4beebd9eec76e81b515cbd5b 100644 (file)
@@ -1810,7 +1810,6 @@ void mesh_list_remove(struct mesh_state* m, struct mesh_state** fp,
 void mesh_state_remove_reply(struct mesh_area* mesh, struct mesh_state* m,
        struct comm_point* cp)
 {
-       int was_mesh_reply = 0;
        struct mesh_reply* n, *prev = NULL;
        n = m->reply_list;
        /* when in mesh_cleanup, it sets the reply_list to NULL, so that
@@ -1824,7 +1823,6 @@ void mesh_state_remove_reply(struct mesh_area* mesh, struct mesh_state* m,
                        /* delete it, but allocated in m region */
                        log_assert(mesh->num_reply_addrs > 0);
                        mesh->num_reply_addrs--;
-                       was_mesh_reply = 1;
 
                        /* prev = prev; */
                        n = n->next;
@@ -1839,7 +1837,7 @@ void mesh_state_remove_reply(struct mesh_area* mesh, struct mesh_state* m,
                mesh->num_detached_states++;
        }
        /* if not replies any more in mstate, it is no longer a reply_state */
-       if(!m->reply_list && !m->cb_list && was_mesh_reply) {
+       if(!m->reply_list && !m->cb_list) {
                log_assert(mesh->num_reply_states > 0);
                mesh->num_reply_states--;
        }