[Pkg-privacy-commits] [torsocks] 21/38: Fix: allow port 65535.
Intrigeri
intrigeri at moszumanska.debian.org
Thu Jun 23 15:18:24 UTC 2016
This is an automated email from the git hooks/post-receive script.
intrigeri pushed a commit to branch experimental/master
in repository torsocks.
commit d4102a81aa30f5e6cff23242b376ce2f555a1c0e
Author: junglefowl <junglefowl at 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 at 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;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/torsocks.git
More information about the Pkg-privacy-commits
mailing list