summaryrefslogtreecommitdiff
path: root/src/mint-tools/taler-mint-keycheck.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mint-tools/taler-mint-keycheck.c')
-rw-r--r--src/mint-tools/taler-mint-keycheck.c4
1 files changed, 3 insertions, 1 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",