]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix port range in parse_port_range().
authorGeorge Kadianakis <desnacked@riseup.net>
Fri, 22 Jun 2012 15:24:06 +0000 (18:24 +0300)
committerNick Mathewson <nickm@torproject.org>
Fri, 6 Jul 2012 12:02:14 +0000 (08:02 -0400)
changes/bug6218 [new file with mode: 0644]
src/common/address.c

diff --git a/changes/bug6218 b/changes/bug6218
new file mode 100644 (file)
index 0000000..5d5d108
--- /dev/null
@@ -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.
index 30665fab27066557e4f23743e10c691922da1d1c..e88869f1d8747601d171f736e7bce12568dd3071 100644 (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.",