summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;