From 62c1311b3ab57c61488ecfc8c94fabb5f2c70e6e Mon Sep 17 00:00:00 2001 From: George Kadianakis Date: Fri, 22 Jun 2012 18:24:06 +0300 Subject: Fix port range in parse_port_range(). --- src/common/address.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common/address.c') diff --git a/src/common/address.c b/src/common/address.c index 30665fab27..e88869f1d8 100644 --- a/src/common/address.c +++ b/src/common/address.c @@ -1526,7 +1526,7 @@ parse_port_range(const char *port, uint16_t *port_min_out, } else if (endptr && *endptr == '-') { port = endptr+1; endptr = NULL; - port_max = (int)tor_parse_long(port, 10, 1, 65536, &ok, &endptr); + port_max = (int)tor_parse_long(port, 10, 1, 65535, &ok, &endptr); if (!ok) { log_warn(LD_GENERAL, "Malformed port %s on address range; rejecting.", -- cgit v1.2.3-54-g00ecf