aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-07-08 09:59:02 +0200
committerChristian Grothoff <christian@grothoff.org>2015-07-08 09:59:02 +0200
commitd16d4f38c9ed4bb286eac4402e1b1d3ed2395b1d (patch)
treea8970c92408a12d08a2a7c2f34fb733d8fe57b0b
parent398bda22748ab125e81db553ae4fe9cd5712aa28 (diff)
downloadexchange-d16d4f38c9ed4bb286eac4402e1b1d3ed2395b1d.tar.gz
exchange-d16d4f38c9ed4bb286eac4402e1b1d3ed2395b1d.tar.bz2
exchange-d16d4f38c9ed4bb286eac4402e1b1d3ed2395b1d.zip
-fix
-rw-r--r--src/mint-lib/mint_api_handle.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mint-lib/mint_api_handle.c b/src/mint-lib/mint_api_handle.c
index 769642ecf..88a4f9331 100644
--- a/src/mint-lib/mint_api_handle.c
+++ b/src/mint-lib/mint_api_handle.c
@@ -280,7 +280,9 @@ parse_json_signkey (struct TALER_MINT_SigningPublicKey *sign_key,
sign_key_issue.purpose.purpose = htonl (TALER_SIGNATURE_MASTER_SIGNING_KEY_VALIDITY);
sign_key_issue.purpose.size =
- htonl (sizeof (struct TALER_MintSigningKeyValidityPS));
+ htonl (sizeof (struct TALER_MintSigningKeyValidityPS)
+ - offsetof (struct TALER_MintSigningKeyValidityPS,
+ purpose));
sign_key_issue.master_public_key = *master_key;
sign_key_issue.start = GNUNET_TIME_absolute_hton (valid_from);
sign_key_issue.expire = GNUNET_TIME_absolute_hton (valid_until);