summaryrefslogtreecommitdiff
path: root/src/or/routerparse.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-01-26 11:08:02 -0500
committerNick Mathewson <nickm@torproject.org>2011-01-26 11:08:02 -0500
commita880429a7657634c690191c3abae0531ed6e89e1 (patch)
tree5b5e3871b0718056f6bb3679174ed5877fbf26db /src/or/routerparse.c
parent2dcc98e4f794fd92d7044e270385db56c95118b5 (diff)
parentba3b03def05796619620346e02b127ad9436333e (diff)
downloadtor-a880429a7657634c690191c3abae0531ed6e89e1.tar.gz
tor-a880429a7657634c690191c3abae0531ed6e89e1.zip
Merge remote branch 'origin/maint-0.2.2'
Diffstat (limited to 'src/or/routerparse.c')
-rw-r--r--src/or/routerparse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/routerparse.c b/src/or/routerparse.c
index 2e9f7174bf..d41b91d22e 100644
--- a/src/or/routerparse.c
+++ b/src/or/routerparse.c
@@ -1086,7 +1086,7 @@ check_signature_token(const char *digest,
signed_digest = tor_malloc(keysize);
if (crypto_pk_public_checksig(pkey, signed_digest, keysize,
tok->object_body, tok->object_size)
- < DIGEST_LEN) {
+ < digest_len) {
log_warn(LD_DIR, "Error reading %s: invalid signature.", doctype);
tor_free(signed_digest);
return -1;