aboutsummaryrefslogtreecommitdiff
path: root/src/or/relay.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2005-03-25 11:12:14 +0000
committerRoger Dingledine <arma@torproject.org>2005-03-25 11:12:14 +0000
commit9b9dbad0b77d9fec872e42aa1952b2ee6808e393 (patch)
tree01facf1b26e9e07afec419e17620ef34234bb913 /src/or/relay.c
parent8945df8daaebc07df3cf7ac7987982ad879748e5 (diff)
downloadtor-9b9dbad0b77d9fec872e42aa1952b2ee6808e393.tar
tor-9b9dbad0b77d9fec872e42aa1952b2ee6808e393.tar.gz
fix another case where we need to send a socks reply (reject)
back before we close the conn. svn:r3876
Diffstat (limited to 'src/or/relay.c')
-rw-r--r--src/or/relay.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/relay.c b/src/or/relay.c
index 7135569bb..f03332fbf 100644
--- a/src/or/relay.c
+++ b/src/or/relay.c
@@ -659,6 +659,9 @@ connection_edge_process_relay_cell_not_open(
if (CIRCUIT_IS_ORIGIN(circ))
circuit_log_path(LOG_INFO,circ);
conn->has_sent_end = 1; /* we just got an 'end', don't need to send one */
+ connection_ap_handshake_socks_reply(conn, NULL, 0,
+ connection_edge_end_reason_socks5_response(*(char *)
+ (cell->payload+RELAY_HEADER_SIZE)));
connection_mark_for_close(conn);
return 0;
}