summaryrefslogtreecommitdiff
path: root/src/lib
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
commit5f4e14b8c8cd4c8907f669144a5a4bb8b8b7a585 (patch)
treee145f4cebaf39aa772da8d8f81aa3540fb44cfcb /src/lib
parentc22696e3606f9873ddbf02b11dc91214853b8317 (diff)
parent089e57d22f7c5e755a2d88d0b102207f7207ee27 (diff)
downloadtor-5f4e14b8c8cd4c8907f669144a5a4bb8b8b7a585.tar.gz
tor-5f4e14b8c8cd4c8907f669144a5a4bb8b8b7a585.zip
Merge branch 'maint-0.3.5' into maint-0.4.1
Diffstat (limited to 'src/lib')
-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 0581529125..c28111a5a5 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)) {