]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
make tor-resolve work again
authorRoger Dingledine <arma@torproject.org>
Wed, 24 Nov 2004 06:01:52 +0000 (06:01 +0000)
committerRoger Dingledine <arma@torproject.org>
Wed, 24 Nov 2004 06:01:52 +0000 (06:01 +0000)
svn:r2973

src/or/connection_edge.c

index b119089c2595a57c855cc2cc2f2511c9d56b4def..d9054657081633e55a4ff34460a22382f7ec78a8 100644 (file)
@@ -399,7 +399,7 @@ static int connection_ap_handshake_process_socks(connection_t *conn) {
   /* 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;
     }