do not crash on bogus signature on denomination key (2)

This commit is contained in:
Christian Grothoff 2019-12-07 17:48:59 +01:00
parent d4d590bcda
commit c43f81d871
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -1625,7 +1625,6 @@ reload_public_denoms_cb (void *cls,
dki.denom_priv.rsa_private_key = NULL; /* not available! */
dki.denom_pub.rsa_public_key = denom_pub->rsa_public_key;
dki.issue = *issue;
/* we can assert here as we checked for duplicates just above */
ret = store_in_map (rfc->key_state->denomkey_map,
&dki /* makes a deep copy of dki */);
if (GNUNET_SYSERR == ret)
@ -1636,6 +1635,7 @@ reload_public_denoms_cb (void *cls,
GNUNET_h2s (&issue->properties.denom_hash));
return;
}
/* we can assert here as we checked for duplicates just above */
GNUNET_assert (GNUNET_OK == ret);
}