-fix returning full response

This commit is contained in:
Christian Grothoff 2021-05-28 23:08:03 +02:00
parent be62bc5734
commit 3df47fa6d7
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC
2 changed files with 3 additions and 1 deletions

View File

@ -2054,7 +2054,7 @@ TEH_keys_get_handler (const struct TEH_RequestHandler *rh,
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Client provided invalid cherry picking timestamp %s, returning full response\n", "Client provided invalid cherry picking timestamp %s, returning full response\n",
GNUNET_STRINGS_absolute_time_to_string (last_issue_date)); GNUNET_STRINGS_absolute_time_to_string (last_issue_date));
krd = &ksh->krd_array[0]; krd = &ksh->krd_array[ksh->krd_array_length - 1];
} }
if (NULL == krd) if (NULL == krd)
{ {

View File

@ -1108,6 +1108,7 @@ update_keys (void *cls)
duration), duration),
lookahead_sign), lookahead_sign),
overlap_duration)).rel_value_us) ) overlap_duration)).rel_value_us) )
{
if (GNUNET_OK != if (GNUNET_OK !=
create_key ()) create_key ())
{ {
@ -1115,6 +1116,7 @@ update_keys (void *cls)
GNUNET_SCHEDULER_shutdown (); GNUNET_SCHEDULER_shutdown ();
return; return;
} }
}
/* remove expired keys */ /* remove expired keys */
while ( (NULL != keys_head) && while ( (NULL != keys_head) &&
(0 == (0 ==