summaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-08-26 09:46:40 -0400
committerNick Mathewson <nickm@torproject.org>2016-08-26 09:46:40 -0400
commit8fe410e875343a4c134ddbe0db6da3d38865deee (patch)
treedafaeba487edd2d50ae070ad31698986cce59393 /src/or
parenta601ed5c1579e1936aae175e301e19bd1e4a1826 (diff)
parent33a3e6f7183c791d7aa544e3878c66f4ede9a2e7 (diff)
downloadtor-8fe410e875343a4c134ddbe0db6da3d38865deee.tar.gz
tor-8fe410e875343a4c134ddbe0db6da3d38865deee.zip
Merge remote-tracking branch 'andrea/oos-test-failures'
Diffstat (limited to 'src/or')
-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;
}