From: W.C.A. Wijngaards Date: Fri, 12 Jul 2024 14:41:46 +0000 (+0200) Subject: - For #1103: fix to also drop mesh state reference when a h2 reply is X-Git-Tag: release-1.21.0rc1~29 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d52f501d903909096b9d971cbda9e5b65eba6777;p=thirdparty%2Funbound.git - For #1103: fix to also drop mesh state reference when a h2 reply is dropped. --- 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--;