diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-05-11 16:41:14 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-05-11 16:41:14 -0400 |
commit | 7267647bd75762deba5c4070e93df64d0823142e (patch) | |
tree | 96de560435d1719860a465555dfdf9df69c872c7 /src/or/microdesc.c | |
parent | 9fba014e3f7f89520841b65b8b038e5fb931b1d6 (diff) | |
download | tor-7267647bd75762deba5c4070e93df64d0823142e.tar.gz tor-7267647bd75762deba5c4070e93df64d0823142e.zip |
Reapply the automated memcmp conversion to 0.2.3 to catch newly added memcmps
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 f7f42a4dec..86a53d202f 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 || memcmp(md->body, "onion-key", 9) != 0)) { + md->bodylen < 9 || tor_memcmp(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; |