summaryrefslogtreecommitdiff
path: root/src/or/connection.c
diff options
context:
space:
mode:
authorAndrea Shepard <andrea@torproject.org>2016-08-26 00:01:25 +0000
committerAndrea Shepard <andrea@torproject.org>2016-08-26 00:01:25 +0000
commit32fbc9738a18e8d66c94e238e5afd4631d295692 (patch)
tree393f877e1c7f87286bd9a03db2c416e59372716e /src/or/connection.c
parent9e1cb3660b007e26ea84175d3695b2791c4cbd87 (diff)
downloadtor-32fbc9738a18e8d66c94e238e5afd4631d295692.tar.gz
tor-32fbc9738a18e8d66c94e238e5afd4631d295692.zip
Fix OOS comparator fix
Diffstat (limited to 'src/or/connection.c')
-rw-r--r--src/or/connection.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/connection.c b/src/or/connection.c
index e3560af4c5..5ecd1ad7bf 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -4510,8 +4510,8 @@ oos_victim_comparator_for_orconns(or_connection_t *a, or_connection_t *b)
a_circs = connection_or_get_num_circuits(a);
b_circs = connection_or_get_num_circuits(b);
- if (a_circs < b_circs) return -1;
- else if (a_circs > b_circs) return 1;
+ if (a_circs < b_circs) return 1;
+ else if (a_circs > b_circs) return -1;
else return 0;
}