[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r16817: {tor} patch from karsten to fix more of bug 767 (tor/trunk/src/or)
Author: arma
Date: 2008-09-09 17:08:02 -0400 (Tue, 09 Sep 2008)
New Revision: 16817
Modified:
tor/trunk/src/or/directory.c
Log:
patch from karsten to fix more of bug 767
Modified: tor/trunk/src/or/directory.c
===================================================================
--- tor/trunk/src/or/directory.c 2008-09-09 20:43:31 UTC (rev 16816)
+++ tor/trunk/src/or/directory.c 2008-09-09 21:08:02 UTC (rev 16817)
@@ -463,7 +463,12 @@
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);