- For #1103: fix to also drop mesh state reference when a h2 reply is

dropped.
This commit is contained in:
W.C.A. Wijngaards 2024-07-12 16:41:46 +02:00
parent 3adb9c8f92
commit d52f501d90
2 changed files with 5 additions and 0 deletions

View file

@ -3,6 +3,8 @@
12 July 2024: Wouter
- Fix #1103: unbound 1.20.0 segmentation fault with nghttp2.
- For #1103: fix to also drop mesh state reference when a h2 reply is
dropped.
10 July 2024: Wouter
- For #773: In contrib/unbound.service.in set unbound to start after

View file

@ -974,6 +974,9 @@ mesh_state_cleanup(struct mesh_state* mstate)
for(; rep; rep=rep->next) {
infra_wait_limit_dec(mesh->env->infra_cache,
&rep->query_reply, mesh->env->cfg);
if(rep->query_reply.c->use_h2)
http2_stream_remove_mesh_state(
rep->query_reply.c->h2_stream);
comm_point_drop_reply(&rep->query_reply);
log_assert(mesh->num_reply_addrs > 0);
mesh->num_reply_addrs--;