Ver código fonte

Set chosen_exit_name to something we are not about to zero.

svn:r5507
Nick Mathewson 20 anos atrás
pai
commit
835f06a77c
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      src/or/connection_edge.c

+ 1 - 1
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) {