aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-07-17 19:50:29 +0000
committerRoger Dingledine <arma@torproject.org>2004-07-17 19:50:29 +0000
commit87d0948903a8ce0802d4b94f98601ededdebd808 (patch)
tree85583a6e6bcd3c3bd6ef8ec358a19d000b1b3de0 /src
parentdf3544422c35f85cc9990b78a3a5e3ec3c5b67a0 (diff)
downloadtor-87d0948903a8ce0802d4b94f98601ededdebd808.tar.gz
tor-87d0948903a8ce0802d4b94f98601ededdebd808.zip
bugfix: hidden services were broken in cvs
svn:r2053
Diffstat (limited to 'src')
-rw-r--r--src/or/connection_edge.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c
index 15dbe9a289..ab430d39a2 100644
--- a/src/or/connection_edge.c
+++ b/src/or/connection_edge.c
@@ -367,7 +367,7 @@ static int connection_ap_handshake_process_socks(connection_t *conn) {
log_fn(LOG_DEBUG,"socks handshake not all here yet.");
}
if (sockshere == -1)
- conn->socks_request->has_finished = 1;
+ socks->has_finished = 1;
return sockshere;
} /* else socks handshake is done, continue processing */
@@ -397,6 +397,8 @@ static int connection_ap_handshake_process_socks(connection_t *conn) {
return connection_ap_handshake_attach_circuit(conn);
} else {
/* it's a hidden-service request */
+ /* XXX008 what does it mean to socks-resolve a hidden service? should
+ * we fail those right here? */
rend_cache_entry_t *entry;
int r;
@@ -577,6 +579,7 @@ int connection_ap_make_bridge(char *address, uint16_t port) {
conn->socks_request->has_finished = 0; /* waiting for 'connected' */
strcpy(conn->socks_request->address, address);
conn->socks_request->port = port;
+ conn->socks_request->command = SOCKS_COMMAND_CONNECT;
conn->address = tor_strdup("(local bridge)");
conn->addr = ntohs(0);