summaryrefslogtreecommitdiff
path: root/src/or/connection_edge.c
diff options
context:
space:
mode:
authorChelsea H. Komlo <chelsea.komlo@gmail.com>2016-10-08 19:28:38 -0500
committerChelsea H. Komlo <chelsea.komlo@gmail.com>2016-10-18 18:40:50 -0500
commit195ccce94e250a150e208f7a8fb9ba8375b6fe89 (patch)
treee24de23c5ea00bf4827d3280f59718b6cbb87b79 /src/or/connection_edge.c
parent9a3adb07c49a522ffbefb009687c3bd9ee282d59 (diff)
downloadtor-195ccce94e250a150e208f7a8fb9ba8375b6fe89.tar.gz
tor-195ccce94e250a150e208f7a8fb9ba8375b6fe89.zip
Refactor to use purpose_needs_anonymity and remove is_sensitive_dir_purpose
Diffstat (limited to 'src/or/connection_edge.c')
-rw-r--r--src/or/connection_edge.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c
index 24842e4107..44dfcefb71 100644
--- a/src/or/connection_edge.c
+++ b/src/or/connection_edge.c
@@ -2434,7 +2434,7 @@ connection_ap_handshake_send_begin(entry_connection_t *ap_conn)
* Otherwise, directory connections are typically one-hop.
* This matches the earlier check for directory connection path anonymity
* in directory_initiate_command_rend(). */
- if (is_sensitive_dir_purpose(linked_dir_conn_base->purpose)) {
+ if (purpose_needs_anonymity(linked_dir_conn_base->purpose, 0)) {
assert_circ_anonymity_ok(circ, options);
}
} else {