summaryrefslogtreecommitdiff
path: root/src/or/entrynodes.c
diff options
context:
space:
mode:
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;
}