diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-09-06 12:05:24 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-09-06 12:05:24 +0000 |
commit | 8675d5f1a8906b4255562f878e140acc0ee8fafc (patch) | |
tree | 40f140e61d6b2a5212d2aa94b7379ec0d9f03494 /src/namestore/namestore_api_common.c | |
parent | 3a56bf7aa7e6de7d096cb509054b5dab1e50d119 (diff) | |
download | gnunet-8675d5f1a8906b4255562f878e140acc0ee8fafc.tar.gz gnunet-8675d5f1a8906b4255562f878e140acc0ee8fafc.zip |
-misc fixes
Diffstat (limited to 'src/namestore/namestore_api_common.c')
-rw-r--r-- | src/namestore/namestore_api_common.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/namestore/namestore_api_common.c b/src/namestore/namestore_api_common.c index 3094d1aad..1956d420e 100644 --- a/src/namestore/namestore_api_common.c +++ b/src/namestore/namestore_api_common.c | |||
@@ -450,8 +450,8 @@ GNUNET_NAMESTORE_block_decrypt (const struct GNUNET_NAMESTORE_Block *block, | |||
450 | struct GNUNET_CRYPTO_AesInitializationVector iv; | 450 | struct GNUNET_CRYPTO_AesInitializationVector iv; |
451 | struct GNUNET_CRYPTO_AesSessionKey skey; | 451 | struct GNUNET_CRYPTO_AesSessionKey skey; |
452 | 452 | ||
453 | if (ntohl (block->purpose.size) < | 453 | if (ntohl (block->purpose.size) < |
454 | sizeof (struct GNUNET_CRYPTO_EccSignaturePurpose) - | 454 | sizeof (struct GNUNET_CRYPTO_EccSignaturePurpose) + |
455 | sizeof (struct GNUNET_TIME_AbsoluteNBO)) | 455 | sizeof (struct GNUNET_TIME_AbsoluteNBO)) |
456 | { | 456 | { |
457 | GNUNET_break_op (0); | 457 | GNUNET_break_op (0); |
@@ -979,6 +979,7 @@ GNUNET_NAMESTORE_pkey_to_zkey (const struct GNUNET_CRYPTO_EccPublicKey *pkey) | |||
979 | &pkeys[slen / 2], | 979 | &pkeys[slen / 2], |
980 | (int) (slen / 2), | 980 | (int) (slen / 2), |
981 | pkeys); | 981 | pkeys); |
982 | GNUNET_free (pkeys); | ||
982 | return ret; | 983 | return ret; |
983 | } | 984 | } |
984 | 985 | ||