mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 06:48:05 +01:00
Merge branch 'bug2409' into maint-0.2.2
This commit is contained in:
commit
ba3b03def0
2 changed files with 5 additions and 1 deletions
4
changes/bug2409
Normal file
4
changes/bug2409
Normal file
|
@ -0,0 +1,4 @@
|
|||
o Minor bugfixes
|
||||
- Resolve a bug in verifying signatures of directory objects
|
||||
with digests longer than SHA1. Bugfix on 0.2.2.20-alpha;
|
||||
fixes bug 2409; found by "piebeer".
|
|
@ -1088,7 +1088,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;
|
||||
|
|
Loading…
Add table
Reference in a new issue