]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
when pruning circuit-wait streams when a dir fetch failed,
authorRoger Dingledine <arma@torproject.org>
Mon, 10 Jan 2005 02:47:50 +0000 (02:47 +0000)
committerRoger Dingledine <arma@torproject.org>
Mon, 10 Jan 2005 02:47:50 +0000 (02:47 +0000)
refer in logs to the destination address, not the address of the
application connection.

svn:r3330

src/or/main.c

index fffa039fa4da9bf5cab695010bb118ffc2b2de26..093b133cdf7363f3680021549f13949625d31421 100644 (file)
@@ -416,7 +416,8 @@ void directory_all_unreachable(time_t now) {
   while ((conn = connection_get_by_type_state(CONN_TYPE_AP,
                                               AP_CONN_STATE_CIRCUIT_WAIT))) {
     conn->has_sent_end = 1; /* it's not connected anywhere, so no need to end */
-    log_fn(LOG_NOTICE,"Network down? Failing connection to '%s'.", conn->address);
+    log_fn(LOG_NOTICE,"Network down? Failing connection to '%s'.",
+           conn->socks_address->address);
     connection_mark_for_close(conn);
   }
 }