소스 검색

the other half of weasel's patch, so old gcc's can build cvs again.

svn:r5517
Roger Dingledine 20 년 전
부모
커밋
5c0338dca3
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/or/connection_edge.c

+ 1 - 1
src/or/connection_edge.c

@@ -1005,8 +1005,8 @@ connection_ap_handshake_process_socks(connection_t *conn)
       }
     } else {
       struct in_addr in;
-      conn->chosen_exit_name = tor_strdup(socks->address);
       routerinfo_t *r = router_get_by_nickname(conn->chosen_exit_name, 1);
+      conn->chosen_exit_name = tor_strdup(socks->address);
       *socks->address = 0;
       if (r) {
         /* XXXX Should this use server->address instead? */