diff options
author | Karsten Loesing <karsten.loesing@gmx.net> | 2008-11-16 01:52:44 +0000 |
---|---|---|
committer | Karsten Loesing <karsten.loesing@gmx.net> | 2008-11-16 01:52:44 +0000 |
commit | 6d7951c02231cc86006938bc01d23a5ac8b9c013 (patch) | |
tree | 93a3e8b0d0a89c78fb321255f90dea9fb7c90982 /src | |
parent | 425bfdae202a21fee5f5846edfe54575d6dcd3b4 (diff) | |
download | tor-6d7951c02231cc86006938bc01d23a5ac8b9c013.tar.gz tor-6d7951c02231cc86006938bc01d23a5ac8b9c013.zip |
Fix a possible segfault when establishing an exit connection. Bugfix on 0.2.1.5-alpha.
svn:r17275
Diffstat (limited to 'src')
-rw-r--r-- | src/or/connection_edge.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c index e060b6b42d..97c995a340 100644 --- a/src/or/connection_edge.c +++ b/src/or/connection_edge.c @@ -296,7 +296,6 @@ connection_edge_finished_flushing(edge_connection_t *conn) int connection_edge_finished_connecting(edge_connection_t *edge_conn) { - char valbuf[INET_NTOA_BUF_LEN]; connection_t *conn; tor_assert(edge_conn); @@ -305,7 +304,8 @@ connection_edge_finished_connecting(edge_connection_t *edge_conn) tor_assert(conn->state == EXIT_CONN_STATE_CONNECTING); log_info(LD_EXIT,"Exit connection to %s:%u (%s) established.", - escaped_safe_str(conn->address),conn->port,safe_str(valbuf)); + escaped_safe_str(conn->address),conn->port, + fmt_addr(&conn->addr)); conn->state = EXIT_CONN_STATE_OPEN; connection_watch_events(conn, EV_READ); /* stop writing, continue reading */ |