diff options
Diffstat (limited to 'src/or/routerparse.c')
-rw-r--r-- | src/or/routerparse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/routerparse.c b/src/or/routerparse.c index b370f245f..73e2ca8f9 100644 --- a/src/or/routerparse.c +++ b/src/or/routerparse.c @@ -738,7 +738,7 @@ check_directory_signature(const char *digest, return -1; } log_fn(LOG_DEBUG,"Signed directory hash starts %s", hex_str(signed_digest,4)); - if (memcmp(digest, signed_digest, 20)) { + if (memcmp(digest, signed_digest, DIGEST_LEN)) { log_fn(LOG_WARN, "Error reading directory: signature does not match."); return -1; } @@ -992,7 +992,7 @@ router_parse_entry_from_string(const char *s, const char *end) log_fn(LOG_WARN, "Invalid signature %d",t); goto err; } - if (memcmp(digest, signed_digest, 20)) { + if (memcmp(digest, signed_digest, DIGEST_LEN)) { log_fn(LOG_WARN, "Mismatched signature"); goto err; } |