Merge remote-tracking branch 'origin/maint-0.2.3'

This commit is contained in:
Nick Mathewson 2012-07-06 08:03:16 -04:00
commit 7e1a0bb24e
2 changed files with 4 additions and 1 deletions

3
changes/bug6218 Normal file
View File

@ -0,0 +1,3 @@
o Minor bugfixes:
- Fix wrong TCP port range in parse_port_range(). Fixes bug 6218;
bugfix on 0.2.1.10-alpha.

View File

@ -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.",