diff options
-rw-r--r-- | src/mint-tools/taler-mint-keycheck.c | 4 | ||||
-rw-r--r-- | src/mint-tools/taler-mint-keyup.c | 2 | ||||
-rw-r--r-- | src/mintdb/mintdb_keyio.c | 2 |
3 files changed, 5 insertions, 3 deletions
diff --git a/src/mint-tools/taler-mint-keycheck.c b/src/mint-tools/taler-mint-keycheck.c index 41c3cba8f..c4584e2f2 100644 --- a/src/mint-tools/taler-mint-keycheck.c +++ b/src/mint-tools/taler-mint-keycheck.c @@ -120,7 +120,9 @@ denomkeys_iter (void *cls, struct GNUNET_HashCode hc; if (ntohl (dki->issue.purpose.size) != - sizeof (struct TALER_DenominationKeyValidityPS)) + sizeof (struct TALER_DenominationKeyValidityPS) - + offsetof (struct TALER_DenominationKeyValidityPS, + purpose)) { fprintf (stderr, "Denomination key for `%s' has invalid purpose size\n", diff --git a/src/mint-tools/taler-mint-keyup.c b/src/mint-tools/taler-mint-keyup.c index f4b9bb652..81b6c9020 100644 --- a/src/mint-tools/taler-mint-keyup.c +++ b/src/mint-tools/taler-mint-keyup.c @@ -811,7 +811,7 @@ mint_keys_update_cointype (void *cls, &denomkey_issue); if (GNUNET_OK != TALER_MINTDB_denomination_key_write (dkf, - &denomkey_issue)) + &denomkey_issue)) { fprintf (stderr, "Failed to write denomination key information to file `%s'.\n", diff --git a/src/mintdb/mintdb_keyio.c b/src/mintdb/mintdb_keyio.c index 7109c983f..81ffb97bb 100644 --- a/src/mintdb/mintdb_keyio.c +++ b/src/mintdb/mintdb_keyio.c @@ -206,7 +206,7 @@ TALER_MINTDB_denomination_key_write (const char *filename, goto cleanup; wsize = sizeof (struct TALER_DenominationKeyValidityPS); if (GNUNET_SYSERR == (wrote = GNUNET_DISK_file_write (fh, - &dki->issue.signature, + &dki->issue, wsize))) goto cleanup; if (wrote != wsize) |