]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix for #411, #439, #469: stream reuse, fix linking when touching the
authorGeorge Thessalonikefs <george@nlnetlabs.nl>
Fri, 23 Jul 2021 15:51:42 +0000 (17:51 +0200)
committerGeorge Thessalonikefs <george@nlnetlabs.nl>
Fri, 23 Jul 2021 15:51:42 +0000 (17:51 +0200)
  tcp_reuse LRU list.

services/outside_network.c

index b40c3076ed3d3eb89e5fd990b9862536f991a895..8b8deea91d3669c12a2801add800d60dd39fc766 100644 (file)
@@ -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