diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-06-30 15:34:16 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-06-30 15:34:16 -0400 |
commit | b750a77e3fc16cc670d89be1d1ed4d278d4ca989 (patch) | |
tree | 9ca285f67cbd1f7b4a339ee04268a8f56600b7c4 /src/or/entrynodes.c | |
parent | 2713de2a47f652f1d0637df7b9b02b6ec039a8f6 (diff) | |
download | tor-b750a77e3fc16cc670d89be1d1ed4d278d4ca989.tar.gz tor-b750a77e3fc16cc670d89be1d1ed4d278d4ca989.zip |
fix naked memcmps
Diffstat (limited to 'src/or/entrynodes.c')
-rw-r--r-- | src/or/entrynodes.c | 2 |
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; } |