]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
r19199@catbus: nickm | 2008-04-03 15:01:05 -0400
authorNick Mathewson <nickm@torproject.org>
Thu, 3 Apr 2008 19:01:16 +0000 (19:01 +0000)
committerNick Mathewson <nickm@torproject.org>
Thu, 3 Apr 2008 19:01:16 +0000 (19:01 +0000)
 Fix bug 641 and 650, I think.

svn:r14297

src/or/connection_edge.c

index ae24d5fc1937934fe01352f4c9637d197ee7ffd9..d678065c02cf7dc9bb9b7f222767806b72a8c807 100644 (file)
@@ -2772,7 +2772,7 @@ connection_ap_can_use_exit(edge_connection_t *conn, routerinfo_t *exit)
   if (conn->chosen_exit_name) {
     routerinfo_t *chosen_exit =
       router_get_by_nickname(conn->chosen_exit_name, 1);
-    if (!chosen_exit || memcpy(chosen_exit->cache_info.identity_digest,
+    if (!chosen_exit || memcmp(chosen_exit->cache_info.identity_digest,
                                exit->cache_info.identity_digest, DIGEST_LEN)) {
       /* doesn't match */
 //      log_debug(LD_APP,"Requested node '%s', considering node '%s'. No.",