aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-08-17 11:22:16 -0400
committerNick Mathewson <nickm@torproject.org>2011-08-17 11:22:16 -0400
commitd79d648edcc19d1f11758016108fdbb57c80b4d0 (patch)
tree495884876940b1683e9daa1a474cc72c2bdbab99 /src/or/connection.c
parent03f6ee8c5f270497b4990b98bc3d23ffea6c75a9 (diff)
downloadtor-d79d648edcc19d1f11758016108fdbb57c80b4d0.tar.gz
tor-d79d648edcc19d1f11758016108fdbb57c80b4d0.zip
Don't write ControlPorts to disk till after we setuid and make datadir
Fix for bug 3747; bugfix on 0.2.2.26-beta.
Diffstat (limited to 'src/or/connection.c')
-rw-r--r--src/or/connection.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/or/connection.c b/src/or/connection.c
index c791309d68..2049f4240c 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -1061,9 +1061,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);