diff options
| author | Christian Grothoff <christian@grothoff.org> | 2015-08-09 18:31:26 +0200 | 
|---|---|---|
| committer | Christian Grothoff <christian@grothoff.org> | 2015-08-09 18:31:26 +0200 | 
| commit | d0fb01185085d6f4423d5fc2ea726113676749a8 (patch) | |
| tree | 9e83635227abebfd68ba2a5ead205fb1b51d2234 | |
| parent | 462d315247610e4223a0a94096e93b6036068e98 (diff) | |
fixing silly bug
| -rw-r--r-- | src/mint-lib/mint_api_refresh.c | 4 | ||||
| -rw-r--r-- | 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 442a73e1..58fe1126 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<TALER_CNC_KAPPA;i++) diff --git a/src/mint-lib/test_mint_api.c b/src/mint-lib/test_mint_api.c index 4881a3b1..cc500987 100644 --- a/src/mint-lib/test_mint_api.c +++ b/src/mint-lib/test_mint_api.c @@ -1906,7 +1906,6 @@ run (void *cls,        .details.deposit.contract = "{ \"items\"={ \"name\":\"ice cream\", \"value\":2 } }",        .details.deposit.transaction_id = 1 }, -#if TEST_REFRESH      /* ***************** /refresh testing ******************** */      /* Fill reserve with EUR:5.01, as withdraw fee is 1 ct */ @@ -1945,6 +1944,8 @@ run (void *cls,        .expected_response_code = MHD_HTTP_OK,        .details.refresh_reveal.melt_ref = "refresh-melt-1" }, +#if TEST_REFRESH_LINK +      /* Test that /refresh/link works */      { .oc = OC_REFRESH_LINK,        .label = "refresh-link-1", @@ -2046,7 +2047,7 @@ main (int argc,        fprintf (stderr, ".");        sleep (1);      } -  while (0 != system ("wget -q -t 1 http://localhost:8081/agpl -o /dev/null")); +  while (0 != system ("wget -q -t 1 http://localhost:8081/agpl -o /dev/null -O /dev/null"));    fprintf (stderr, "\n");    result = GNUNET_SYSERR;    GNUNET_SCHEDULER_run (&run, NULL); | 
