commit d4102a81aa30f5e6cff23242b376ce2f555a1c0e Author: junglefowl junglefowl@riseup.net Date: Fri Oct 30 19:23:10 2015 +0000
Fix: allow port 65535.
Port 65535 is a valid port among the tor code base. In fact, in_port_t type will guarantee a valid port number. The only special value is "0", so drop the 65535 check completely.
Signed-off-by: David Goulet dgoulet@ev0ke.net --- src/common/connection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/common/connection.c b/src/common/connection.c index d4ae722..2f48bbc 100644 --- a/src/common/connection.c +++ b/src/common/connection.c @@ -121,7 +121,7 @@ int connection_addr_set(enum connection_domain domain, const char *ip, assert(ip); assert(addr);
- if (port == 0 || port >= 65535) { + if (port == 0) { ret = -EINVAL; ERR("Connection addr set port out of range: %d", port); goto error;
tor-commits@lists.torproject.org