diff options
author | Fabian Keil <fk@fabiankeil.de> | 2011-09-10 12:33:23 +0200 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-09-10 17:48:37 -0400 |
commit | c6f6b567e0547968c474afd47d56cc03953e0f03 (patch) | |
tree | 84fdd7181b1a4d18a6cd0a34974446262c89ac19 | |
parent | 087e0569c3ca87bd2f851fd9126e100dd18da755 (diff) | |
download | tor-c6f6b567e0547968c474afd47d56cc03953e0f03.tar.gz tor-c6f6b567e0547968c474afd47d56cc03953e0f03.zip |
Stop parse_client_port_config() from misinterpreting FooListenAddress and FooPort in legacy syntax
Previously the FooPort was ignored and the default used instead,
causing Tor to bind to the wrong port if FooPort and the default
port don't match or the CONN_TYPE_FOO_LISTENER has no default port.
Fixes #3936.
-rw-r--r-- | src/or/config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/config.c b/src/or/config.c index 684875d83a..ac7c6fff7e 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -5019,7 +5019,7 @@ parse_client_port_config(smartlist_t *out, if (out) { port_cfg_t *cfg = tor_malloc_zero(sizeof(port_cfg_t)); cfg->type = listener_type; - cfg->port = port ? port : defaultport; + cfg->port = port ? port : mainport; tor_addr_copy(&cfg->addr, &addr); cfg->session_group = SESSION_GROUP_UNSET; cfg->isolation_flags = ISO_DEFAULT; |