[or-cvs] when pruning circuit-wait streams when a dir fetch failed,

Roger Dingledine arma at seul.org
Mon Jan 10 02:47:53 UTC 2005


Update of /home2/or/cvsroot/tor/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/tor/src/or

Modified Files:
	main.c 
Log Message:
when pruning circuit-wait streams when a dir fetch failed,
refer in logs to the destination address, not the address of the
application connection.


Index: main.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/main.c,v
retrieving revision 1.416
retrieving revision 1.417
diff -u -d -r1.416 -r1.417
--- main.c	7 Jan 2005 15:57:57 -0000	1.416
+++ main.c	10 Jan 2005 02:47:50 -0000	1.417
@@ -416,7 +416,8 @@
   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);
   }
 }



More information about the tor-commits mailing list