-do not warn if timestamp is 0, that is valid

This commit is contained in:
Christian Grothoff 2021-06-16 11:12:55 +02:00
parent e3089761ef
commit ae60be7644
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

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