[or-cvs] make tor-resolve work again
Roger Dingledine
arma at seul.org
Wed Nov 24 06:01:54 UTC 2004
Update of /home2/or/cvsroot/tor/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/tor/src/or
Modified Files:
connection_edge.c
Log Message:
make tor-resolve work again
Index: connection_edge.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/connection_edge.c,v
retrieving revision 1.239
retrieving revision 1.240
diff -u -d -r1.239 -r1.240
--- connection_edge.c 24 Nov 2004 04:35:28 -0000 1.239
+++ connection_edge.c 24 Nov 2004 06:01:52 -0000 1.240
@@ -399,7 +399,7 @@
/* this call _modifies_ socks->address iff it's a hidden-service request */
if (rend_parse_rendezvous_address(socks->address) < 0) {
/* normal request */
- if (socks->port == 0) {
+ if (socks->command == SOCKS_COMMAND_CONNECT && socks->port == 0) {
log_fn(LOG_WARN,"Application asked to connect to port 0. Refusing.");
return -1;
}
More information about the tor-commits
mailing list