summaryrefslogtreecommitdiff
path: root/src/or/transports.c
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2012-04-12 22:42:37 +0200
committerGeorge Kadianakis <desnacked@riseup.net>2012-04-12 22:42:37 +0200
commit6d2898607bd831944c6c15b6e15200a426149811 (patch)
treee0b2baee164b62b85c89c24aefdfaddee37252ec /src/or/transports.c
parentb03f90b5383744593dc1e83fc5834c965573a4dc (diff)
downloadtor-6d2898607bd831944c6c15b6e15200a426149811.tar.gz
tor-6d2898607bd831944c6c15b6e15200a426149811.zip
Fix issues found by nickm.
* Document fmt_addr_impl() and friends. * Parenthesize macro arguments. * Rename get_first_listener_addrport_for_pt() to get_first_listener_addrport_string(). * Handle port_cfg_t with no_listen. * Handle failure of router_get_active_listener_port_by_type(). * Add an XXX to router_get_active_listener_port_by_type().
Diffstat (limited to 'src/or/transports.c')
-rw-r--r--src/or/transports.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/transports.c b/src/or/transports.c
index 1f2149381e..897645021a 100644
--- a/src/or/transports.c
+++ b/src/or/transports.c
@@ -992,7 +992,7 @@ create_managed_proxy_environment(const managed_proxy_t *mp)
if (mp->is_server) {
{
- char *orport_tmp = get_first_listener_addrport_for_pt(CONN_TYPE_OR_LISTENER);
+ char *orport_tmp = get_first_listener_addrport_string(CONN_TYPE_OR_LISTENER);
smartlist_add_asprintf(envs, "TOR_PT_ORPORT=%s", orport_tmp);
tor_free(orport_tmp);
}