Browse Source

when pruning circuit-wait streams when a dir fetch failed,
refer in logs to the destination address, not the address of the
application connection.


svn:r3330

Roger Dingledine 21 years ago
parent
commit
10a81ccf18
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/or/main.c

+ 2 - 1
src/or/main.c

@@ -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);
   }
 }