diff options
author | Robert Ransom <rransom.8774@gmail.com> | 2011-11-23 14:07:46 -0800 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-11-30 14:54:15 -0500 |
commit | a364f88477105075a202e55b2e44dafa4bf2be51 (patch) | |
tree | b552d47bd339bd54fcc6633b3db975f3d0c87cbb /src/or/directory.c | |
parent | 826f1d5b0ab1faa0c75d2fd6560b4983adec33c8 (diff) | |
download | tor-a364f88477105075a202e55b2e44dafa4bf2be51.tar tor-a364f88477105075a202e55b2e44dafa4bf2be51.tar.gz |
Add ifdefs to disable #3332 assertions
Diffstat (limited to 'src/or/directory.c')
-rw-r--r-- | src/or/directory.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/directory.c b/src/or/directory.c index 776b7a25f..073b88717 100644 --- a/src/or/directory.c +++ b/src/or/directory.c @@ -907,8 +907,12 @@ directory_initiate_command_rend(const char *address, const tor_addr_t *_addr, log_debug(LD_DIR, "Initiating %s", dir_conn_purpose_to_string(dir_purpose)); +#ifndef NON_ANONYMOUS_MODE_ENABLED tor_assert(!(is_sensitive_dir_purpose(dir_purpose) && !anonymized_connection)); +#else + (void)is_sensitive_dir_purpose; +#endif /* ensure that we don't make direct connections when a SOCKS server is * configured. */ |