]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix ewma_cmp_cmux never considering policies different
authorMatt Traudt <sirmatt@ksu.edu>
Tue, 25 Oct 2016 14:07:05 +0000 (10:07 -0400)
committerMatt Traudt <sirmatt@ksu.edu>
Tue, 25 Oct 2016 14:07:05 +0000 (10:07 -0400)
changes/bug20459 [new file with mode: 0644]
src/or/circuitmux_ewma.c

diff --git a/changes/bug20459 b/changes/bug20459
new file mode 100644 (file)
index 0000000..6878188
--- /dev/null
@@ -0,0 +1,3 @@
+  o Minor bugfixes:
+    - Fix ewma_cmp_cmux never considering circuit policies to be different.
+      Introduced in 0.2.6. Fixes bug 20459.
index 5c2ebde73bf4293b29829ab08050a27ac60bd434..0219459cdb805f276686a85304d0642dda28adb9 100644 (file)
@@ -500,7 +500,7 @@ ewma_cmp_cmux(circuitmux_t *cmux_1, circuitmux_policy_data_t *pol_data_1,
   tor_assert(pol_data_2);
 
   p1 = TO_EWMA_POL_DATA(pol_data_1);
-  p2 = TO_EWMA_POL_DATA(pol_data_1);
+  p2 = TO_EWMA_POL_DATA(pol_data_2);
 
   if (p1 != p2) {
     /* Get the head cell_ewma_t from each queue */