-fix
authorSchanzenbach, Martin <mschanzenbach@posteo.de>
Sat, 8 Jul 2017 18:19:12 +0000 (20:19 +0200)
committerSchanzenbach, Martin <mschanzenbach@posteo.de>
Sat, 8 Jul 2017 18:19:12 +0000 (20:19 +0200)
src/identity-provider/gnunet-service-identity-provider.c

index 3a7a6eeb9b2ff2d7219086ec1d5eaef444a8a90f..4194aabc4bcd758f68b0325821e6b6267c0209e6 100644 (file)
@@ -514,7 +514,7 @@ serialize_abe_keyinfo (const struct IssueHandle *handle,
   ssize_t enc_size;
   
   size = GNUNET_CRYPTO_cpabe_serialize_key (rp_key,
-                                            &serialized_key);
+                                            (void**)&serialized_key);
   buf = GNUNET_malloc (strlen (handle->scopes) + 1 + size);
   GNUNET_memcpy (buf,
                  handle->scopes,
@@ -523,6 +523,7 @@ serialize_abe_keyinfo (const struct IssueHandle *handle,
                  serialized_key,
                  size);
   // ECDH keypair E = eG
+  ecdh_pubkey = NULL;
   *ecdh_privkey = GNUNET_CRYPTO_ecdhe_key_create();
   GNUNET_CRYPTO_ecdhe_key_get_public (*ecdh_privkey,
                                       ecdh_pubkey);