diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-05-11 16:27:27 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-05-11 16:27:27 -0400 |
commit | 0cbcbc3412b667537b6ec54da0a4c9173a19d6de (patch) | |
tree | 6cf0e59b26854a49be2326d49f57189a48e31b60 /src/or/connection_or.c | |
parent | 9964c314c6c6af4b921875c973f28f8d01b2e9a2 (diff) | |
download | tor-0cbcbc3412b667537b6ec54da0a4c9173a19d6de.tar.gz tor-0cbcbc3412b667537b6ec54da0a4c9173a19d6de.zip |
Re-apply the automated conversion to 0.2.2 to make handle any memcmps that snuck in
Diffstat (limited to 'src/or/connection_or.c')
-rw-r--r-- | src/or/connection_or.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/connection_or.c b/src/or/connection_or.c index 4ce08af152..ed174c922e 100644 --- a/src/or/connection_or.c +++ b/src/or/connection_or.c @@ -748,7 +748,7 @@ connection_or_set_bad_connections(const char *digest, int force) return; DIGESTMAP_FOREACH(orconn_identity_map, identity, or_connection_t *, conn) { - if (!digest || !memcmp(digest, conn->identity_digest, DIGEST_LEN)) + if (!digest || tor_memeq(digest, conn->identity_digest, DIGEST_LEN)) connection_or_group_set_badness(conn, force); } DIGESTMAP_FOREACH_END; } |