diff options
author | teor <teor@torproject.org> | 2019-04-05 15:02:43 +1000 |
---|---|---|
committer | teor <teor@torproject.org> | 2019-04-05 15:17:19 +1000 |
commit | 7d513a5d5541d17c4e9622a9af76303042fd380b (patch) | |
tree | c3aaf4b1bc230da587c1b23bb025b56fc3e78ad9 /src/feature/dirauth/dirvote.c | |
parent | abaed046a6f0f6f6fea5eaf3631b10a514e962e9 (diff) | |
download | tor-7d513a5d5541d17c4e9622a9af76303042fd380b.tar.gz tor-7d513a5d5541d17c4e9622a9af76303042fd380b.zip |
crypto_format: Remove the return values from digest256_to_base64()
... and ed25519_public_to_base64(). Also remove all checks for the return
values, which were redundant anyway, because the functions never failed.
Part of 29960.
Diffstat (limited to 'src/feature/dirauth/dirvote.c')
-rw-r--r-- | src/feature/dirauth/dirvote.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/feature/dirauth/dirvote.c b/src/feature/dirauth/dirvote.c index 29f5d04509..1f861d2417 100644 --- a/src/feature/dirauth/dirvote.c +++ b/src/feature/dirauth/dirvote.c @@ -3914,8 +3914,7 @@ dirvote_format_microdesc_vote_line(char *out_buf, size_t out_buf_len, ","); tor_assert(microdesc_consensus_methods); - if (digest256_to_base64(d64, md->digest)<0) - goto out; + digest256_to_base64(d64, md->digest); if (tor_snprintf(out_buf, out_buf_len, "m %s sha256=%s\n", microdesc_consensus_methods, d64)<0) |