aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-04-16 13:49:14 +0000
committerRoger Dingledine <arma@torproject.org>2004-04-16 13:49:14 +0000
commitf84fa39d8761a1062141ef813472cdc3efec8a06 (patch)
tree64ded3afa131c3fc1195db6f9cf0c7d3b591c844 /src
parenta0a6ed85d1f669cfc85dc021e6828c56b1bb152d (diff)
downloadtor-f84fa39d8761a1062141ef813472cdc3efec8a06.tar
tor-f84fa39d8761a1062141ef813472cdc3efec8a06.tar.gz
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. svn:r1642
Diffstat (limited to 'src')
-rw-r--r--src/or/connection_edge.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c
index 8bfe0b551..802cb3850 100644
--- a/src/or/connection_edge.c
+++ b/src/or/connection_edge.c
@@ -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);