fixing silly bug
This commit is contained in:
parent
462d315247
commit
d0fb011850
@ -647,7 +647,7 @@ deserialize_fresh_coin (struct FreshCoin *fc,
|
|||||||
fc->blinding_key.rsa_blinding_key
|
fc->blinding_key.rsa_blinding_key
|
||||||
= GNUNET_CRYPTO_rsa_blinding_key_decode (&buf[sizeof (struct FreshCoinP)],
|
= GNUNET_CRYPTO_rsa_blinding_key_decode (&buf[sizeof (struct FreshCoinP)],
|
||||||
bbuf_size);
|
bbuf_size);
|
||||||
if (NULL == fc->blinding_key.rsa_blinding_key)
|
if (NULL == fc->blinding_key.rsa_blinding_key)
|
||||||
{
|
{
|
||||||
GNUNET_break (0);
|
GNUNET_break (0);
|
||||||
*ok = GNUNET_NO;
|
*ok = GNUNET_NO;
|
||||||
@ -740,7 +740,7 @@ deserialize_melt_data (const char *buf,
|
|||||||
return NULL;
|
return NULL;
|
||||||
memcpy (&mdp,
|
memcpy (&mdp,
|
||||||
buf,
|
buf,
|
||||||
buf_size);
|
sizeof (struct MeltDataP));
|
||||||
md = GNUNET_new (struct MeltData);
|
md = GNUNET_new (struct MeltData);
|
||||||
md->melt_session_hash = mdp.melt_session_hash;
|
md->melt_session_hash = mdp.melt_session_hash;
|
||||||
for (i=0;i<TALER_CNC_KAPPA;i++)
|
for (i=0;i<TALER_CNC_KAPPA;i++)
|
||||||
|
@ -1906,7 +1906,6 @@ run (void *cls,
|
|||||||
.details.deposit.contract = "{ \"items\"={ \"name\":\"ice cream\", \"value\":2 } }",
|
.details.deposit.contract = "{ \"items\"={ \"name\":\"ice cream\", \"value\":2 } }",
|
||||||
.details.deposit.transaction_id = 1 },
|
.details.deposit.transaction_id = 1 },
|
||||||
|
|
||||||
#if TEST_REFRESH
|
|
||||||
/* ***************** /refresh testing ******************** */
|
/* ***************** /refresh testing ******************** */
|
||||||
|
|
||||||
/* Fill reserve with EUR:5.01, as withdraw fee is 1 ct */
|
/* 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,
|
.expected_response_code = MHD_HTTP_OK,
|
||||||
.details.refresh_reveal.melt_ref = "refresh-melt-1" },
|
.details.refresh_reveal.melt_ref = "refresh-melt-1" },
|
||||||
|
|
||||||
|
#if TEST_REFRESH_LINK
|
||||||
|
|
||||||
/* Test that /refresh/link works */
|
/* Test that /refresh/link works */
|
||||||
{ .oc = OC_REFRESH_LINK,
|
{ .oc = OC_REFRESH_LINK,
|
||||||
.label = "refresh-link-1",
|
.label = "refresh-link-1",
|
||||||
@ -2046,7 +2047,7 @@ main (int argc,
|
|||||||
fprintf (stderr, ".");
|
fprintf (stderr, ".");
|
||||||
sleep (1);
|
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");
|
fprintf (stderr, "\n");
|
||||||
result = GNUNET_SYSERR;
|
result = GNUNET_SYSERR;
|
||||||
GNUNET_SCHEDULER_run (&run, NULL);
|
GNUNET_SCHEDULER_run (&run, NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user