]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
when alice uses a port that the hidden service doesn't accept,
authorRoger Dingledine <arma@torproject.org>
Fri, 16 Apr 2004 13:49:14 +0000 (13:49 +0000)
committerRoger Dingledine <arma@torproject.org>
Fri, 16 Apr 2004 13:49:14 +0000 (13:49 +0000)
it now sends back an end cell (denied by exit policy). otherwise
alice would just have to wait to time out.

svn:r1642

src/or/connection_edge.c

index 8bfe0b55128092826a384336fd74466185403171..802cb38506339f86bac85881c0fb1206d04c6464 100644 (file)
@@ -1175,8 +1175,8 @@ static int connection_exit_begin_conn(cell_t *cell, circuit_t *circ) {
     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);