return;
}
ego = GNUNET_new (struct GNUNET_IDENTITY_Ego);
+ ego->pub_initialized = GNUNET_NO;
ego->pk = um->private_key;
ego->name = GNUNET_strdup (str);
ego->id = id;
GNUNET_IDENTITY_ego_get_public_key (struct GNUNET_IDENTITY_Ego *ego,
struct GNUNET_CRYPTO_EcdsaPublicKey *pk)
{
- if (! ego->pub_initialized)
+ if (GNUNET_NO == ego->pub_initialized)
{
GNUNET_CRYPTO_ecdsa_key_get_public (&ego->pk,
&ego->pub);
- ego->pub_initialized = true;
+ ego->pub_initialized = GNUNET_YES;
}
*pk = ego->pub;
}
struct GNUNET_CRYPTO_EcdsaPublicKey pub;
struct GNUNET_HashCode id;
struct GNUNET_IDENTITY_Ego ego;
+ memset (&ego, 0, sizeof (ego));
GNUNET_break (GNUNET_YES != ntohs (um->end_of_list));
GNUNET_CRYPTO_ecdsa_key_get_public (&um->private_key, &pub);