[or-cvs] when alice uses a port that the hidden service doesn"t acce...

Roger Dingledine arma at seul.org
Fri Apr 16 13:49:16 UTC 2004


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

Modified Files:
	connection_edge.c 
Log Message:
when alice uses a port that the hidden service doesn't accept,
it now sends back an end cell (denied by exit policy). otherwise
alice would just have to wait to time out.


Index: connection_edge.c
===================================================================
RCS file: /home/or/cvsroot/src/or/connection_edge.c,v
retrieving revision 1.167
retrieving revision 1.168
diff -u -d -r1.167 -r1.168
--- connection_edge.c	16 Apr 2004 08:49:14 -0000	1.167
+++ connection_edge.c	16 Apr 2004 13:49:14 -0000	1.168
@@ -1175,8 +1175,8 @@
     assert(n_stream->rend_query[0]);
     assert_circuit_ok(circ);
     if(rend_service_set_connection_addr_port(n_stream, circ) < 0) {
-      log_fn(LOG_WARN,"Didn't find rendezvous service (port %d)",n_stream->port);
-      connection_mark_for_close(n_stream,0 /* XXX */);
+      log_fn(LOG_INFO,"Didn't find rendezvous service (port %d)",n_stream->port);
+      connection_mark_for_close(n_stream, END_STREAM_REASON_EXITPOLICY);
       return 0;
     }
     assert_circuit_ok(circ);



More information about the tor-commits mailing list