diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-05-04 23:29:56 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-05-04 23:29:56 -0400 |
commit | 08efa70c41b258d8655ec01bdb721aea96b42d46 (patch) | |
tree | 3f02d0f047881c9f79591df82890db087f986793 /src/or/dirvote.c | |
parent | 7de3a19497f081e680e7fd35315f107510f313ad (diff) | |
parent | 9583a534ac8801211b6c171c399f1ea6bb3cce1c (diff) | |
download | tor-08efa70c41b258d8655ec01bdb721aea96b42d46.tar.gz tor-08efa70c41b258d8655ec01bdb721aea96b42d46.zip |
Merge remote-tracking branch 'origin/maint-0.2.2'
Diffstat (limited to 'src/or/dirvote.c')
-rw-r--r-- | src/or/dirvote.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/or/dirvote.c b/src/or/dirvote.c index 7ba6cca1b2..b90684c39a 100644 --- a/src/or/dirvote.c +++ b/src/or/dirvote.c @@ -3122,8 +3122,12 @@ dirvote_compute_consensuses(void) authority_cert_t *cert = get_my_v3_legacy_cert(); legacy_sign = get_my_v3_legacy_signing_key(); if (cert) { - crypto_pk_get_digest(cert->identity_key, legacy_dbuf); - legacy_id_digest = legacy_dbuf; + if (crypto_pk_get_digest(cert->identity_key, legacy_dbuf)) { + log_warn(LD_BUG, + "Unable to compute digest of legacy v3 identity key"); + } else { + legacy_id_digest = legacy_dbuf; + } } } |