summaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-08-17 12:00:44 -0400
committerNick Mathewson <nickm@torproject.org>2011-08-17 12:00:44 -0400
commit06be6105e45eca8ce3ad24e58652ad3faa083c92 (patch)
tree77ccd55de478735e98b7eb6a6dd4603cbb34c89e /src/or
parent14552a12b3b6ff0770153d9d2f116febad349303 (diff)
parentd79d648edcc19d1f11758016108fdbb57c80b4d0 (diff)
downloadtor-06be6105e45eca8ce3ad24e58652ad3faa083c92.tar.gz
tor-06be6105e45eca8ce3ad24e58652ad3faa083c92.zip
Merge remote-tracking branch 'origin/maint-0.2.2'
Conflicts: src/or/config.c
Diffstat (limited to 'src/or')
-rw-r--r--src/or/config.c3
-rw-r--r--src/or/connection.c3
2 files changed, 3 insertions, 3 deletions
diff --git a/src/or/config.c b/src/or/config.c
index 315884c5b4..716d83ab0d 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -1120,6 +1120,9 @@ options_act_reversible(const or_options_t *old_options, char **msg)
/* No need to roll back, since you can't change the value. */
}
+ /* Write control ports to disk as appropriate */
+ control_ports_write_to_file();
+
if (directory_caches_v2_dir_info(options)) {
size_t len = strlen(options->DataDirectory)+32;
char *fn = tor_malloc(len);
diff --git a/src/or/connection.c b/src/or/connection.c
index 452ddc1895..4e691e17fe 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -987,9 +987,6 @@ connection_create_listener(const struct sockaddr *listensockaddr,
"%s listening on port %u.",
conn_type_to_string(type), gotPort);
- if (type == CONN_TYPE_CONTROL_LISTENER)
- control_ports_write_to_file();
-
conn->state = LISTENER_STATE_READY;
if (start_reading) {
connection_start_reading(conn);