]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
stream reuse, comment improved
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Thu, 9 Jul 2020 14:37:40 +0000 (16:37 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Thu, 9 Jul 2020 14:37:40 +0000 (16:37 +0200)
services/outside_network.c

index f899bfd43dfe3fb75331cf2eff0cb04c4b6565c2..a33507dd06a91317e369571f5a5b7784f1be5906 100644 (file)
@@ -827,7 +827,9 @@ static void reuse_cb_readwait_for_failure(struct pending_tcp* pend, int err)
 
 /** perform callbacks for failure and also decommission pending tcp.
  * the callbacks remove references in sq->pending to the waiting_tcp
- * members of the tree_by_id in the pending tcp. */
+ * members of the tree_by_id in the pending tcp.  The pending_tcp is
+ * removed before the callbacks, so that the callbacks do not modify
+ * the pending_tcp due to its reference in the outside_network reuse tree */
 static void reuse_cb_and_decommission(struct outside_network* outnet,
        struct pending_tcp* pend, int error)
 {