From d52f501d903909096b9d971cbda9e5b65eba6777 Mon Sep 17 00:00:00 2001 From: "W.C.A. Wijngaards" Date: Fri, 12 Jul 2024 16:41:46 +0200 Subject: [PATCH] - For #1103: fix to also drop mesh state reference when a h2 reply is dropped. --- doc/Changelog | 2 ++ services/mesh.c | 3 +++ 2 files changed, 5 insertions(+) diff --git a/doc/Changelog b/doc/Changelog index bc71af26d..88857239b 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -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 diff --git a/services/mesh.c b/services/mesh.c index d3811b475..fa03c63d8 100644 --- a/services/mesh.c +++ b/services/mesh.c @@ -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--; -- 2.47.2