mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-09-13 21:37:43 +02:00
- Remove unneeded was_mesh_reply check.
This commit is contained in:
@@ -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).
|
||||
|
||||
+1
-3
@@ -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--;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user