summaryrefslogtreecommitdiff
path: root/src/or/entrynodes.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-06-30 15:34:16 -0400
committerNick Mathewson <nickm@torproject.org>2016-06-30 15:34:16 -0400
commitb750a77e3fc16cc670d89be1d1ed4d278d4ca989 (patch)
tree9ca285f67cbd1f7b4a339ee04268a8f56600b7c4 /src/or/entrynodes.c
parent2713de2a47f652f1d0637df7b9b02b6ec039a8f6 (diff)
downloadtor-b750a77e3fc16cc670d89be1d1ed4d278d4ca989.tar.gz
tor-b750a77e3fc16cc670d89be1d1ed4d278d4ca989.zip
fix naked memcmps
Diffstat (limited to 'src/or/entrynodes.c')
-rw-r--r--src/or/entrynodes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/entrynodes.c b/src/or/entrynodes.c
index 17507fefbd..6990bcd758 100644
--- a/src/or/entrynodes.c
+++ b/src/or/entrynodes.c
@@ -2452,7 +2452,7 @@ get_bridge_dl_status_by_id, (const char *digest))
if (digest && get_options()->UseBridges && bridge_list) {
SMARTLIST_FOREACH_BEGIN(bridge_list, bridge_info_t *, b) {
- if (memcmp(digest, b->identity, DIGEST_LEN) == 0) {
+ if (tor_memeq(digest, b->identity, DIGEST_LEN)) {
dl = &(b->fetch_status);
break;
}