浏览代码

Set chosen_exit_name to something we are not about to zero.

svn:r5507
Nick Mathewson 20 年之前
父节点
当前提交
835f06a77c
共有 1 个文件被更改,包括 1 次插入1 次删除
  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) {