summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-06-16 11:12:55 +0200
committerChristian Grothoff <christian@grothoff.org>2021-06-16 11:12:55 +0200
commitae60be7644699940f3596bc8f9674d36cbe22e25 (patch)
tree2c543115a6e6cfd5cffe5070152beca0b2245309 /src
parente3089761ef26659596b7d6236afe1d7fe8cc14a4 (diff)
downloadexchange-ae60be7644699940f3596bc8f9674d36cbe22e25.tar.gz
exchange-ae60be7644699940f3596bc8f9674d36cbe22e25.tar.bz2
exchange-ae60be7644699940f3596bc8f9674d36cbe22e25.zip
-do not warn if timestamp is 0, that is valid
Diffstat (limited to 'src')
-rw-r--r--src/exchange/taler-exchange-httpd_keys.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/exchange/taler-exchange-httpd_keys.c b/src/exchange/taler-exchange-httpd_keys.c
index a116e5c9..37c1fcfc 100644
--- a/src/exchange/taler-exchange-httpd_keys.c
+++ b/src/exchange/taler-exchange-httpd_keys.c
@@ -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)