-fix use after free

This commit is contained in:
Christian Grothoff 2021-11-21 13:30:07 +01:00
parent 5159badd0e
commit 9b8abc1b01
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC
2 changed files with 10 additions and 2 deletions

View File

@ -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;

View File

@ -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 */