-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_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;
|
||||
GNUNET_SCHEDULER_shutdown ();
|
||||
return;
|
||||
|
@ -220,6 +220,7 @@ test_revocation (struct TALER_CRYPTO_ExchangeSignHelper *esh)
|
||||
"\nFAILED: timeout trying to revoke key %u\n",
|
||||
j);
|
||||
TALER_CRYPTO_helper_esign_disconnect (esh);
|
||||
esh = NULL;
|
||||
return 2;
|
||||
}
|
||||
fprintf (stderr, "\n");
|
||||
@ -453,7 +454,11 @@ run_test (void)
|
||||
if (0 == ret)
|
||||
ret = perf_signing (esh,
|
||||
"sequential");
|
||||
TALER_CRYPTO_helper_esign_disconnect (esh);
|
||||
if (NULL != esh)
|
||||
{
|
||||
TALER_CRYPTO_helper_esign_disconnect (esh);
|
||||
esh = NULL;
|
||||
}
|
||||
if (0 == ret)
|
||||
ret = par_signing (cfg);
|
||||
/* clean up our state */
|
||||
|
Loading…
Reference in New Issue
Block a user