diff options
author | Roger Dingledine <arma@torproject.org> | 2016-03-24 19:04:37 -0400 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2016-03-24 19:14:31 -0400 |
commit | fbd79f38c232aa6b739a81480830eebb5e49af4e (patch) | |
tree | ea7a1e46db6a2a71b97e8ec90dc8d23e273319a3 /src/or | |
parent | f590a303db344a18f4e77be803a615e259892d2d (diff) | |
download | tor-fbd79f38c232aa6b739a81480830eebb5e49af4e.tar.gz tor-fbd79f38c232aa6b739a81480830eebb5e49af4e.zip |
remove a redundant check about whether dirport is 0
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/directory.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/or/directory.c b/src/or/directory.c index c14c11dcf8..2c10c03cf7 100644 --- a/src/or/directory.c +++ b/src/or/directory.c @@ -1085,17 +1085,6 @@ directory_initiate_command_rend(const tor_addr_port_t *or_addr_port, log_debug(LD_DIR, "anonymized %d, use_begindir %d.", anonymized_connection, use_begindir); - /* XXX This clause is redundant with the "addr, port is viable" check below. - * We should remove it. */ - if (!dir_port && !use_begindir) { - char ipaddr[TOR_ADDR_BUF_LEN]; - tor_addr_to_str(ipaddr, &addr, TOR_ADDR_BUF_LEN, 0); - log_warn(LD_BUG, "Cannot use directory server without dirport or " - "begindir! Address: %s, DirPort: %d, Connection Port: %d", - escaped_safe_str_client(ipaddr), dir_port, port); - return; - } - log_debug(LD_DIR, "Initiating %s", dir_conn_purpose_to_string(dir_purpose)); #ifndef NON_ANONYMOUS_MODE_ENABLED |