diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-06-19 11:16:55 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-06-19 11:16:55 +0200 |
commit | 6d222b2d6c1a8614de261f60a65d273087b9f38f (patch) | |
tree | d493f1093397ba76b08e8f1a4ca8448e33dfd706 /src/mint-tools/taler-mint-keycheck.c | |
parent | d9dbc4438947663b146e8f07037ab86db2627b63 (diff) |
fix size calculation in keycheck tool
Diffstat (limited to 'src/mint-tools/taler-mint-keycheck.c')
-rw-r--r-- | src/mint-tools/taler-mint-keycheck.c | 4 |
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", |