[or-cvs] and use it to make sure we only conclude reachability if

Roger Dingledine arma at seul.org
Thu Mar 31 07:47:01 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:
	circuitbuild.c 
Log Message:
...and use it to make sure we only conclude reachability if
we didn't initiate the conn.


Index: circuitbuild.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/circuitbuild.c,v
retrieving revision 1.97
retrieving revision 1.98
diff -u -d -r1.97 -r1.98
--- circuitbuild.c	27 Mar 2005 07:18:30 -0000	1.97
+++ circuitbuild.c	31 Mar 2005 07:46:59 -0000	1.98
@@ -774,9 +774,11 @@
   connection_or_write_cell_to_buf(&cell, circ->p_conn);
   log_fn(LOG_DEBUG,"Finished sending 'created' cell.");
 
-  if (!is_local_IP(circ->p_conn->addr)) {
-    /* record that we could process create cells; presumably this means
-       that create cells can reach us too. */
+  if (!is_local_IP(circ->p_conn->addr) &&
+      tor_tls_is_server(circ->p_conn->tls)) {
+    /* record that we could process create cells from a non-local conn
+     * that we didn't initiate; presumably this means that create cells
+     * can reach us too. */
     router_orport_found_reachable();
   }
 



More information about the tor-commits mailing list