summaryrefslogtreecommitdiff
path: root/src/mintdb/mintdb_keyio.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-07-09 22:10:14 +0200
committerChristian Grothoff <christian@grothoff.org>2015-07-09 22:10:14 +0200
commitbe535b68e1c5911c9ec011a0d24714d0f4b42377 (patch)
treef3105779d95265b4ebdaa8aff735bad31cc22d71 /src/mintdb/mintdb_keyio.c
parentbe778784ea2ceaf609426041c5ac3a0241ea242e (diff)
downloadexchange-be535b68e1c5911c9ec011a0d24714d0f4b42377.tar.gz
exchange-be535b68e1c5911c9ec011a0d24714d0f4b42377.tar.bz2
exchange-be535b68e1c5911c9ec011a0d24714d0f4b42377.zip
fix a few pointer passing issues, add remark about #3886
Diffstat (limited to 'src/mintdb/mintdb_keyio.c')
-rw-r--r--src/mintdb/mintdb_keyio.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mintdb/mintdb_keyio.c b/src/mintdb/mintdb_keyio.c
index f475218b9..9e2cd60f0 100644
--- a/src/mintdb/mintdb_keyio.c
+++ b/src/mintdb/mintdb_keyio.c
@@ -165,6 +165,7 @@ TALER_MINTDB_denomination_key_read (const char *filename,
GNUNET_free (data);
return GNUNET_SYSERR;
}
+ GNUNET_assert (NULL == dki->denom_priv.rsa_private_key);
dki->denom_priv.rsa_private_key = priv;
dki->denom_pub.rsa_public_key
= GNUNET_CRYPTO_rsa_private_key_get_public (priv);
@@ -270,15 +271,18 @@ denomkeys_iterate_keydir_iter (void *cls,
struct DenomkeysIterateContext *dic = cls;
struct TALER_MINTDB_DenominationKeyIssueInformation issue;
+ memset (&issue, 0, sizeof (issue));
if (GNUNET_OK !=
TALER_MINTDB_denomination_key_read (filename,
- &issue))
+ &issue))
{
GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
"Invalid denomkey file: '%s'\n",
filename);
return GNUNET_OK;
}
+ /* FIXME: very ugly, 'it' is to free memory WE
+ allocated as part of issue!!?? #3886 */
return dic->it (dic->it_cls,
dic->alias,
&issue);