summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSchanzenbach, Martin <mschanzenbach@posteo.de>2020-05-06 19:15:49 +0200
committerSchanzenbach, Martin <mschanzenbach@posteo.de>2020-05-06 19:15:49 +0200
commitd83cf2d3b949ea7fdd2e7ff3722dac0ca016233e (patch)
tree870eb8c66bde7159a9940f1968577f2817a84a92
parent1847e16524eb9fe5171612b43cf1d063d0f25dfc (diff)
same id derivation for anon
-rw-r--r--src/identity/identity_api.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/identity/identity_api.c b/src/identity/identity_api.c
index 9269e1c79..693d4392e 100644
--- a/src/identity/identity_api.c
+++ b/src/identity/identity_api.c
@@ -164,8 +164,8 @@ GNUNET_IDENTITY_ego_get_anonymous ()
anon.pk = *GNUNET_CRYPTO_ecdsa_key_get_anonymous ();
GNUNET_CRYPTO_ecdsa_key_get_public (&anon.pk,
&pub);
- GNUNET_CRYPTO_hash (&pub,
- sizeof(pub),
+ GNUNET_CRYPTO_hash (&anon.pk,
+ sizeof(anon.pk),
&anon.id);
setup = 1;
return &anon;