aboutsummaryrefslogtreecommitdiff
path: root/src/mintdb/test_mintdb.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-06-11 14:58:23 +0200
committerChristian Grothoff <christian@grothoff.org>2015-06-11 14:58:23 +0200
commita2c77cd36a2b0d0ebb7d8b999cabcc8a36ccd6bb (patch)
tree12b13bfb89c646f7821a913cbd3706aa324f86c6 /src/mintdb/test_mintdb.c
parenteedfc0485010a2afb1cb4a2d202eb0ceb8bc5cb8 (diff)
fixing #3823
Diffstat (limited to 'src/mintdb/test_mintdb.c')
-rw-r--r--src/mintdb/test_mintdb.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/mintdb/test_mintdb.c b/src/mintdb/test_mintdb.c
index ed6986cc0..edf0c4e68 100644
--- a/src/mintdb/test_mintdb.c
+++ b/src/mintdb/test_mintdb.c
@@ -98,6 +98,12 @@ register_denomination(struct TALER_DenominationPublicKey denom_pub,
struct TALER_MINTDB_Session *session)
{
struct TALER_MINTDB_DenominationKeyIssueInformation dki;
+
+ /* Using memset() as fields like master key and signature
+ are not properly initialized for this test. */
+ memset (&dki,
+ 0,
+ sizeof (struct TALER_MINTDB_DenominationKeyIssueInformation));
dki.denom_pub = denom_pub;
dki.issue.start = GNUNET_TIME_absolute_hton (GNUNET_TIME_absolute_get ());
dki.issue.expire_withdraw = GNUNET_TIME_absolute_hton
@@ -122,7 +128,8 @@ register_denomination(struct TALER_DenominationPublicKey denom_pub,
if (GNUNET_OK !=
plugin->insert_denomination (plugin->cls,
session,
- &dki))
+ &denom_pub,
+ &dki.issue))
{
GNUNET_break(0);
return GNUNET_SYSERR;