aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection_edge.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-04-03 19:01:16 +0000
committerNick Mathewson <nickm@torproject.org>2008-04-03 19:01:16 +0000
commit68407e6a9cf592bf0a688fc39ccc8734003d35c3 (patch)
tree509ce8127bf172527eee859d26e4beb64cc987cc /src/or/connection_edge.c
parent1ac11591d2298fdb92a468d8337bd341fd12ee3f (diff)
downloadtor-68407e6a9cf592bf0a688fc39ccc8734003d35c3.tar
tor-68407e6a9cf592bf0a688fc39ccc8734003d35c3.tar.gz
r19199@catbus: nickm | 2008-04-03 15:01:05 -0400
Fix bug 641 and 650, I think. svn:r14297
Diffstat (limited to 'src/or/connection_edge.c')
-rw-r--r--src/or/connection_edge.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c
index ae24d5fc1..d678065c0 100644
--- a/src/or/connection_edge.c
+++ b/src/or/connection_edge.c
@@ -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.",