Set chosen_exit_name to something we are not about to zero.

svn:r5507
This commit is contained in:
Nick Mathewson 2005-12-05 06:16:24 +00:00
parent 98290e4115
commit 835f06a77c

View File

@ -1002,7 +1002,7 @@ connection_ap_handshake_process_socks(connection_t *conn)
} }
} else { } else {
struct in_addr in; struct in_addr in;
conn->chosen_exit_name = socks->address; conn->chosen_exit_name = tor_strdup(socks->address);
*socks->address = 0; *socks->address = 0;
routerinfo_t *r = router_get_by_nickname(conn->chosen_exit_name, 1); routerinfo_t *r = router_get_by_nickname(conn->chosen_exit_name, 1);
if (r) { if (r) {