summaryrefslogtreecommitdiff
path: root/src/or/circuituse.c
diff options
context:
space:
mode:
authorMike Perry <mikeperry-git@torproject.org>2018-01-24 00:03:24 +0000
committerNick Mathewson <nickm@torproject.org>2018-04-11 10:47:06 -0400
commitf9ba0c65467fe80f65b3789365cfac874198a337 (patch)
tree5ca70797401b58bfd9a9dd825a26b2f469fb041d /src/or/circuituse.c
parent0b1a054d68f4ebb760add6d3a1bda75fb8b17553 (diff)
downloadtor-f9ba0c65467fe80f65b3789365cfac874198a337.tar.gz
tor-f9ba0c65467fe80f65b3789365cfac874198a337.zip
Bug 24989: Count client hsdir gets towards MaxClientCircuitsPending.
We removed this by breaking them out from general in #13837.
Diffstat (limited to 'src/or/circuituse.c')
-rw-r--r--src/or/circuituse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/circuituse.c b/src/or/circuituse.c
index bc9c4bccbd..3125fff650 100644
--- a/src/or/circuituse.c
+++ b/src/or/circuituse.c
@@ -384,7 +384,7 @@ count_pending_general_client_circuits(void)
SMARTLIST_FOREACH_BEGIN(circuit_get_global_list(), circuit_t *, circ) {
if (circ->marked_for_close ||
circ->state == CIRCUIT_STATE_OPEN ||
- circ->purpose != CIRCUIT_PURPOSE_C_GENERAL ||
+ !CIRCUIT_PURPOSE_COUNTS_TOWARDS_MAXPENDING(circ->purpose) ||
!CIRCUIT_IS_ORIGIN(circ))
continue;