Browse Source

Make FooPort 0 correctly disable the FooPort.

Since the prop171 stuff, it had instead made Tor bind port 0, and
re-bind it differently all the time.

Resolves bug3704; not in any released version.
Nick Mathewson 14 years ago
parent
commit
333df6006d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/or/config.c

+ 1 - 1
src/or/config.c

@@ -5118,7 +5118,7 @@ parse_client_port_config(smartlist_t *out,
       }
     } SMARTLIST_FOREACH_END(elt);
 
-    if (out) {
+    if (out && port) {
       port_cfg_t *cfg = tor_malloc_zero(sizeof(port_cfg_t));
       cfg->type = listener_type;
       cfg->port = port;