diff options
author | Kris Katterjohn <katterjohn@gmail.com> | 2019-01-21 13:12:53 -0600 |
---|---|---|
committer | teor <teor@torproject.org> | 2019-03-01 12:34:21 +1000 |
commit | 389ee834b6795ccabbe3d4c7edfdaf8d89696438 (patch) | |
tree | bb594e5938a74374e77ce23720d4f6e835b48039 /src | |
parent | de0969ef7816d54acdcc9f1e2960d8bbc4400ecf (diff) | |
download | tor-389ee834b6795ccabbe3d4c7edfdaf8d89696438.tar.gz tor-389ee834b6795ccabbe3d4c7edfdaf8d89696438.zip |
Log the correct "auto" port number for listening sockets
When "auto" was used for the port number for a listening socket, the
message logged after opening the socket would incorrectly say port 0
instead of the actual port used.
Fixes bug 29144; bugfix on 0.3.5.1-alpha
Signed-off-by: Kris Katterjohn <katterjohn@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/core/mainloop/connection.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/mainloop/connection.c b/src/core/mainloop/connection.c index f2a646c5f9..7b8dc7f364 100644 --- a/src/core/mainloop/connection.c +++ b/src/core/mainloop/connection.c @@ -1527,7 +1527,7 @@ connection_listener_new(const struct sockaddr *listensockaddr, conn_type_to_string(type), conn->address); } else { log_notice(LD_NET, "Opened %s on %s", - conn_type_to_string(type), fmt_addrport(&addr, usePort)); + conn_type_to_string(type), fmt_addrport(&addr, gotPort)); } return conn; |