eventually kick out /keys clients also if ksh exists but krd array is empty

This commit is contained in:
Christian Grothoff 2023-01-17 17:53:16 +01:00
parent c60e6184fd
commit cda751eaa5
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -3232,7 +3232,8 @@ TEH_keys_get_handler (struct TEH_RequestContext *rc,
const struct KeysResponseData *krd;
ksh = TEH_keys_get_state ();
if (NULL == ksh)
if ( (NULL == ksh) ||
(0 == ksh->krd_array_length) )
{
if ( ( (SKR_LIMIT == skr_size) &&
(rc->connection == skr_connection) ) ||