diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-07-20 13:35:02 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-07-20 13:35:02 -0400 |
commit | 6fa99ab32feda0e7866b9439fc6644693c56f134 (patch) | |
tree | 0b3aa4ac4e4fd7869e5500577cf555dead6c0efc /src | |
parent | 1d7beea2ab513c31845abb61d79fb5960b038e4b (diff) | |
download | tor-6fa99ab32feda0e7866b9439fc6644693c56f134.tar.gz tor-6fa99ab32feda0e7866b9439fc6644693c56f134.zip |
Oops: we need to call parse_client_ports with validate_only==0 at least once
Diffstat (limited to 'src')
-rw-r--r-- | src/or/config.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/or/config.c b/src/or/config.c index 1ad4a345d2..7a96304e18 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -1017,6 +1017,7 @@ options_act_reversible(const or_options_t *old_options, char **msg) #endif if (running_tor) { + int n_client_ports=0; /* We need to set the connection limit before we can open the listeners. */ if (set_max_file_descriptors((unsigned)options->ConnLimit, &options->_ConnLimit) < 0) { @@ -1032,6 +1033,10 @@ options_act_reversible(const or_options_t *old_options, char **msg) libevent_initialized = 1; } + /* Adjust the client port configuration so we can launch listeners. */ + if (parse_client_ports(options, 0, msg, &n_client_ports)) + return -1; + /* Launch the listeners. (We do this before we setuid, so we can bind to * ports under 1024.) We don't want to rebind if we're hibernating. */ if (!we_are_hibernating()) { |