summaryrefslogtreecommitdiff
path: root/src/lib/crypt_ops
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2020-03-17 11:45:16 -0400
committerNick Mathewson <nickm@torproject.org>2020-03-17 11:45:16 -0400
commitbbc80ea042a124a5935bd4264677180efdcb2da2 (patch)
treed812ce1d8004afc76e41863d3cf20f665e6e99d3 /src/lib/crypt_ops
parent855cd533e17f4dc4cd055fa8bb31ee3b187451dc (diff)
parente15a621ac81c472f69a082180fa9b4ed39274e43 (diff)
downloadtor-bbc80ea042a124a5935bd4264677180efdcb2da2.tar.gz
tor-bbc80ea042a124a5935bd4264677180efdcb2da2.zip
Merge branch 'maint-0.4.2' into maint-0.4.3
Diffstat (limited to 'src/lib/crypt_ops')
-rw-r--r--src/lib/crypt_ops/crypto_ed25519.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/crypt_ops/crypto_ed25519.c b/src/lib/crypt_ops/crypto_ed25519.c
index bd97f76284..f242c7011e 100644
--- a/src/lib/crypt_ops/crypto_ed25519.c
+++ b/src/lib/crypt_ops/crypto_ed25519.c
@@ -795,7 +795,7 @@ ed25519_point_is_identity_element(const uint8_t *point)
int
ed25519_validate_pubkey(const ed25519_public_key_t *pubkey)
{
- uint8_t result[32] = {9};
+ uint8_t result[32] = {0};
/* First check that we were not given the identity element */
if (ed25519_point_is_identity_element(pubkey->pubkey)) {