mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
patch from karsten to fix more of bug 767
svn:r16817
This commit is contained in:
parent
f95d7c189b
commit
2c14705a4d
@ -463,7 +463,12 @@ directory_initiate_command_routerstatus(routerstatus_t *status,
|
|||||||
struct in_addr in;
|
struct in_addr in;
|
||||||
const char *address;
|
const char *address;
|
||||||
tor_addr_t addr;
|
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;
|
address = router->address;
|
||||||
} else {
|
} else {
|
||||||
in.s_addr = htonl(status->addr);
|
in.s_addr = htonl(status->addr);
|
||||||
|
Loading…
Reference in New Issue
Block a user