From: George Thessalonikefs Date: Fri, 23 Jul 2021 15:51:42 +0000 (+0200) Subject: - Fix for #411, #439, #469: stream reuse, fix linking when touching the X-Git-Tag: release-1.13.2rc1~19^2~9 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f9ad139c08000b9c7ae67a9592b5e9cb505f1fab;p=thirdparty%2Funbound.git - Fix for #411, #439, #469: stream reuse, fix linking when touching the tcp_reuse LRU list. --- diff --git a/services/outside_network.c b/services/outside_network.c index b40c3076e..8b8deea91 100644 --- a/services/outside_network.c +++ b/services/outside_network.c @@ -753,6 +753,9 @@ reuse_tcp_lru_touch(struct outside_network* outnet, struct reuse_tcp* reuse) /* insert at the front */ reuse->lru_prev = NULL; reuse->lru_next = outnet->tcp_reuse_first; + if(outnet->tcp_reuse_first) { + outnet->tcp_reuse_first->lru_prev = reuse; + } log_assert(reuse->lru_next != reuse); /* since it is not first, it is not the only element and * lru_next is thus not NULL and thus reuse is now not the last in