]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
conflux: Fix wrong assert logic
authorDavid Goulet <dgoulet@torproject.org>
Mon, 23 Mar 2026 13:58:54 +0000 (09:58 -0400)
committerDavid Goulet <dgoulet@torproject.org>
Mon, 23 Mar 2026 13:58:58 +0000 (09:58 -0400)
Fortunately, that algorithm is not being used and likely won't be with C-tor in
the forseable future.

Signed-off-by: David Goulet <dgoulet@torproject.org>
src/core/or/conflux.c

index 183a432bab3233000ab566663ad96e0c40e88966..10d19ba63fae9dada87299cb10f85c35ffea1944 100644 (file)
@@ -400,7 +400,7 @@ conflux_decide_circ_cwndrtt(const conflux_t *cfx)
   const conflux_leg_t *leg = NULL;
 
   /* Can't get here without any legs. */
-  tor_assert(!CONFLUX_NUM_LEGS(cfx));
+  tor_assert(CONFLUX_NUM_LEGS(cfx));
 
   /* Find the leg with the minimum RTT.*/
   CONFLUX_FOR_EACH_LEG_BEGIN(cfx, l) {