ensure statements are prepared before keys subsystem initialization

This commit is contained in:
Christian Grothoff 2021-08-25 11:45:13 +02:00
parent e50a5f4d2b
commit 18a68ab789
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC
3 changed files with 10 additions and 2 deletions

@ -1 +1 @@
Subproject commit 79a1ebfdffab6b01137a4642161e907f89c5c535
Subproject commit be874165f95694e52ded88090ac18d682b943f67

View File

@ -1419,6 +1419,13 @@ run (void *cls,
GNUNET_SCHEDULER_shutdown ();
return;
}
if (GNUNET_SYSERR ==
TEH_plugin->preflight (TEH_plugin->cls))
{
global_ret = EXIT_FAILURE;
GNUNET_SCHEDULER_shutdown ();
return;
}
if (GNUNET_OK !=
TEH_keys_init ())
{

View File

@ -1711,7 +1711,8 @@ build_key_state (struct HelperState *hs,
ksh);
if (qs < 0)
{
GNUNET_break (0);
GNUNET_break (GNUNET_DB_STATUS_SOFT_ERROR != qs);
GNUNET_break (GNUNET_DB_STATUS_HARD_ERROR != qs);
destroy_key_state (ksh,
true);
return NULL;