This commit is contained in:
Christian Grothoff 2020-01-20 01:31:24 +01:00
parent 7f60da4971
commit 859337eabb
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -2289,8 +2289,11 @@ TEH_KS_init (void)
/* no need to lock here, as we are still single-threaded */
internal_key_state = make_fresh_key_state (GNUNET_TIME_absolute_get ());
if (NULL == internal_key_state)
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Failed to setup initial key state. This exchange cannot work.\n");
return;
}
internal_key_state->refcnt = 1;
}