diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-12-05 06:16:24 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-12-05 06:16:24 +0000 |
commit | 835f06a77c7d3e930b0ea3025ceefaac12f2afc1 (patch) | |
tree | f422e74a18f17dc176e58f32c03a850079f4b25a /src/or/connection_edge.c | |
parent | 98290e41150f1069aca785b1a219c269314262f7 (diff) | |
download | tor-835f06a77c7d3e930b0ea3025ceefaac12f2afc1.tar.gz tor-835f06a77c7d3e930b0ea3025ceefaac12f2afc1.zip |
Set chosen_exit_name to something we are not about to zero.
svn:r5507
Diffstat (limited to 'src/or/connection_edge.c')
-rw-r--r-- | src/or/connection_edge.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c index 0c95015191..786f2dbae0 100644 --- a/src/or/connection_edge.c +++ b/src/or/connection_edge.c @@ -1002,7 +1002,7 @@ connection_ap_handshake_process_socks(connection_t *conn) } } else { struct in_addr in; - conn->chosen_exit_name = socks->address; + conn->chosen_exit_name = tor_strdup(socks->address); *socks->address = 0; routerinfo_t *r = router_get_by_nickname(conn->chosen_exit_name, 1); if (r) { |