diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-05-11 16:46:38 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-05-11 16:46:38 -0400 |
commit | 9e16a418f92670ae713138701fa931567fb4983d (patch) | |
tree | 4f7112bf05b3a2820ee13fef3aee0565a6370bf0 /src/or/microdesc.c | |
parent | 7267647bd75762deba5c4070e93df64d0823142e (diff) | |
download | tor-9e16a418f92670ae713138701fa931567fb4983d.tar.gz tor-9e16a418f92670ae713138701fa931567fb4983d.zip |
Hand-tune the new tor_memcmp instances in 0.2.3
Diffstat (limited to 'src/or/microdesc.c')
-rw-r--r-- | src/or/microdesc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/microdesc.c b/src/or/microdesc.c index 86a53d202f..ecab799612 100644 --- a/src/or/microdesc.c +++ b/src/or/microdesc.c @@ -465,7 +465,7 @@ microdesc_cache_rebuild(microdesc_cache_t *cache, int force) tor_assert(md->saved_location == SAVED_IN_CACHE); md->body = (char*)cache->cache_content->data + md->off; if (PREDICT_UNLIKELY( - md->bodylen < 9 || tor_memcmp(md->body, "onion-key", 9) != 0)) { + md->bodylen < 9 || fast_memneq(md->body, "onion-key", 9) != 0)) { /* XXXX023 once bug 2022 is solved, we can kill this block and turn it * into just the tor_assert(!memcmp) */ off_t avail = cache->cache_content->size - md->off; |