- Workaround for #439: prevent loops in the reuse rbtree.

This commit is contained in:
W.C.A. Wijngaards 2021-03-05 13:46:36 +01:00
parent 6e4ecf7bc1
commit 1bdae426ee
2 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,6 @@
5 March 2021: Wouter
- Workaround for #439: prevent loops in the reuse rbtree.
4 March 2021: Wouter
- iana portlist update.
- Fix spurious errors about "Could not generate request: out of

View file

@ -892,6 +892,9 @@ reuse_tcp_remove_tree_list(struct outside_network* outnet,
/* delete it from reuse tree */
(void)rbtree_delete(&outnet->tcp_reuse, reuse);
reuse->node.key = NULL;
/* defend against loops on broken tree by zeroing the
* rbnode structure */
memset(&reuse->node, 0, sizeof(reuse->node));
}
/* delete from reuse list */
if(reuse->item_on_lru_list) {