]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
patch from karsten to fix more of bug 767
authorRoger Dingledine <arma@torproject.org>
Tue, 9 Sep 2008 21:08:02 +0000 (21:08 +0000)
committerRoger Dingledine <arma@torproject.org>
Tue, 9 Sep 2008 21:08:02 +0000 (21:08 +0000)
svn:r16817

src/or/directory.c

index 22f9678970dfa1c65374438e94c8f689d46b18e1..8a8bb25f9369b05676124eba020791a4de2d7723 100644 (file)
@@ -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);