From d0fb01185085d6f4423d5fc2ea726113676749a8 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 9 Aug 2015 18:31:26 +0200 Subject: [PATCH] fixing silly bug --- src/mint-lib/mint_api_refresh.c | 4 ++-- src/mint-lib/test_mint_api.c | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/mint-lib/mint_api_refresh.c b/src/mint-lib/mint_api_refresh.c index 442a73e1a..58fe11264 100644 --- a/src/mint-lib/mint_api_refresh.c +++ b/src/mint-lib/mint_api_refresh.c @@ -647,7 +647,7 @@ deserialize_fresh_coin (struct FreshCoin *fc, fc->blinding_key.rsa_blinding_key = GNUNET_CRYPTO_rsa_blinding_key_decode (&buf[sizeof (struct FreshCoinP)], bbuf_size); - if (NULL == fc->blinding_key.rsa_blinding_key) + if (NULL == fc->blinding_key.rsa_blinding_key) { GNUNET_break (0); *ok = GNUNET_NO; @@ -740,7 +740,7 @@ deserialize_melt_data (const char *buf, return NULL; memcpy (&mdp, buf, - buf_size); + sizeof (struct MeltDataP)); md = GNUNET_new (struct MeltData); md->melt_session_hash = mdp.melt_session_hash; for (i=0;i