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.
This commit is contained in:
Nick Mathewson
2011-08-09 14:52:22 -04:00
parent 7c340a97b1
commit 333df6006d
+1 -1
View File
@@ -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;