]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix a stupid logic-error in warnings about low ports.
authorNick Mathewson <nickm@torproject.org>
Tue, 6 Nov 2012 22:15:39 +0000 (17:15 -0500)
committerNick Mathewson <nickm@torproject.org>
Tue, 6 Nov 2012 22:15:39 +0000 (17:15 -0500)
Instead of warning about low ports that are advertised, we should have
been warning about low ports that we're listening on.  Bug 7285, fix
on 0.2.3.9-alpha.

changes/bug7285 [new file with mode: 0644]
src/or/config.c

diff --git a/changes/bug7285 b/changes/bug7285
new file mode 100644 (file)
index 0000000..3c00205
--- /dev/null
@@ -0,0 +1,4 @@
+  o Minor bugfixes:
+    - Warn when we are binding low ports when hibernation is enabled;
+      previously we had warned when we were _advertising_ low ports with
+      hibernation enabled. Fixes bug 7285; bugfix on 0.2.3.9-alpha.
index dca49f5cf4c0d6e58ea8caa58300052d112600ed..bf32fae0e2637719d053c1cad4bab16d16623c93 100644 (file)
@@ -5004,7 +5004,7 @@ check_server_ports(const smartlist_t *ports,
       continue;
     }
 #ifndef _WIN32
-    if (!port->no_advertise && port->port < 1024)
+    if (!port->no_listen && port->port < 1024)
       ++n_low_port;
 #endif
   } SMARTLIST_FOREACH_END(port);