-fix use after free
This commit is contained in:
parent
5159badd0e
commit
9b8abc1b01
@ -1110,7 +1110,10 @@ run (void *cls,
|
|||||||
(GNUNET_TIME_absolute_is_future (keys_head->anchor)) )
|
(GNUNET_TIME_absolute_is_future (keys_head->anchor)) )
|
||||||
{
|
{
|
||||||
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
|
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
|
||||||
"Existing anchor is in the future. Refusing to start\n");
|
"Existing anchor is in %s the future. Refusing to start\n",
|
||||||
|
GNUNET_STRINGS_relative_time_to_string (
|
||||||
|
GNUNET_TIME_absolute_get_remaining (keys_head->anchor),
|
||||||
|
GNUNET_YES));
|
||||||
global_ret = EXIT_FAILURE;
|
global_ret = EXIT_FAILURE;
|
||||||
GNUNET_SCHEDULER_shutdown ();
|
GNUNET_SCHEDULER_shutdown ();
|
||||||
return;
|
return;
|
||||||
|
@ -220,6 +220,7 @@ test_revocation (struct TALER_CRYPTO_ExchangeSignHelper *esh)
|
|||||||
"\nFAILED: timeout trying to revoke key %u\n",
|
"\nFAILED: timeout trying to revoke key %u\n",
|
||||||
j);
|
j);
|
||||||
TALER_CRYPTO_helper_esign_disconnect (esh);
|
TALER_CRYPTO_helper_esign_disconnect (esh);
|
||||||
|
esh = NULL;
|
||||||
return 2;
|
return 2;
|
||||||
}
|
}
|
||||||
fprintf (stderr, "\n");
|
fprintf (stderr, "\n");
|
||||||
@ -453,7 +454,11 @@ run_test (void)
|
|||||||
if (0 == ret)
|
if (0 == ret)
|
||||||
ret = perf_signing (esh,
|
ret = perf_signing (esh,
|
||||||
"sequential");
|
"sequential");
|
||||||
TALER_CRYPTO_helper_esign_disconnect (esh);
|
if (NULL != esh)
|
||||||
|
{
|
||||||
|
TALER_CRYPTO_helper_esign_disconnect (esh);
|
||||||
|
esh = NULL;
|
||||||
|
}
|
||||||
if (0 == ret)
|
if (0 == ret)
|
||||||
ret = par_signing (cfg);
|
ret = par_signing (cfg);
|
||||||
/* clean up our state */
|
/* clean up our state */
|
||||||
|
Loading…
Reference in New Issue
Block a user