summaryrefslogtreecommitdiff
path: root/src/or/circuituse.c
diff options
context:
space:
mode:
authorMike Perry <mikeperry-git@torproject.org>2018-01-20 03:16:24 +0000
committerMike Perry <mikeperry-git@torproject.org>2018-01-20 03:18:31 +0000
commitdb5b670d85febc6e3011932f8f0c7d383d4b9bea (patch)
tree185ec7f70716c45f44bd24e7b8414596d07f7acd /src/or/circuituse.c
parent48a51c5f8b80a359da31bc5aaac8ecd25890fe0d (diff)
downloadtor-db5b670d85febc6e3011932f8f0c7d383d4b9bea.tar.gz
tor-db5b670d85febc6e3011932f8f0c7d383d4b9bea.zip
Bug 24946: Fix a warning message caused by a missed purpose check.
Also fix three other checks (found by inspection of all CIRCUIT_PURPOSE_C_GENERAL occurrences).
Diffstat (limited to 'src/or/circuituse.c')
-rw-r--r--src/or/circuituse.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/circuituse.c b/src/or/circuituse.c
index 5f9567ea16..41ef088252 100644
--- a/src/or/circuituse.c
+++ b/src/or/circuituse.c
@@ -134,6 +134,8 @@ circuit_is_acceptable(const origin_circuit_t *origin_circ,
}
if (purpose == CIRCUIT_PURPOSE_C_GENERAL ||
+ purpose == CIRCUIT_PURPOSE_C_HSDIR_GET ||
+ purpose == CIRCUIT_PURPOSE_S_HSDIR_POST ||
purpose == CIRCUIT_PURPOSE_HS_VANGUARDS ||
purpose == CIRCUIT_PURPOSE_C_REND_JOINED) {
if (circ->timestamp_dirty &&