diff options
author | Roger Dingledine <arma@torproject.org> | 2008-09-09 21:08:02 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2008-09-09 21:08:02 +0000 |
commit | 2c14705a4d9a7922c5248cefbe3398b52c2a3a34 (patch) | |
tree | 8b48090b4c988190a02b346c07744d5e82d700e7 /src/or/directory.c | |
parent | f95d7c189bb89474c57dc9b60832df70fe57760f (diff) | |
download | tor-2c14705a4d9a7922c5248cefbe3398b52c2a3a34.tar.gz tor-2c14705a4d9a7922c5248cefbe3398b52c2a3a34.zip |
patch from karsten to fix more of bug 767
svn:r16817
Diffstat (limited to 'src/or/directory.c')
-rw-r--r-- | src/or/directory.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/or/directory.c b/src/or/directory.c index 22f9678970..8a8bb25f93 100644 --- a/src/or/directory.c +++ b/src/or/directory.c @@ -463,7 +463,12 @@ directory_initiate_command_routerstatus(routerstatus_t *status, struct in_addr in; const char *address; tor_addr_t addr; - if ((router = router_get_by_digest(status->identity_digest))) { + router = router_get_by_digest(status->identity_digest); + if (!router && anonymized_connection) { + log_info(LD_DIR, "Not sending anonymized request to directory; we " + "don't have its router descriptor."); + return; + } else if (router) { address = router->address; } else { in.s_addr = htonl(status->addr); |