diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-05-11 16:32:30 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-05-11 16:32:30 -0400 |
commit | 8fb38331c3213caef2d2e003e02cdb361504f14f (patch) | |
tree | a88cbac5893169b1a955543828b2db0aa85d00bb /src/or/dirserv.c | |
parent | 0cbcbc3412b667537b6ec54da0a4c9173a19d6de (diff) | |
download | tor-8fb38331c3213caef2d2e003e02cdb361504f14f.tar.gz tor-8fb38331c3213caef2d2e003e02cdb361504f14f.zip |
Hand-tune the new tor_memcmp instances in 0.2.2
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r-- | src/or/dirserv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c index 1fd0cd26c2..eadc2d7430 100644 --- a/src/or/dirserv.c +++ b/src/or/dirserv.c @@ -2087,7 +2087,7 @@ routerstatus_format_entry(char *buf, size_t buf_len, /* This assert can fire for the control port, because * it can request NS documents before all descriptors * have been fetched. */ - if (tor_memcmp(desc->cache_info.signed_descriptor_digest, + if (tor_memneq(desc->cache_info.signed_descriptor_digest, rs->descriptor_digest, DIGEST_LEN)) { char rl_d[HEX_DIGEST_LEN+1]; |