summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-05-28 23:08:03 +0200
committerChristian Grothoff <christian@grothoff.org>2021-05-28 23:08:03 +0200
commit3df47fa6d76ab01a3532659378ca54bb00724e1e (patch)
treebf8c9563722bed4c79d5a217c8b5f319587578e9 /src
parentbe62bc57346e04a02acaecc009be002e672314f4 (diff)
downloadexchange-3df47fa6d76ab01a3532659378ca54bb00724e1e.tar.gz
exchange-3df47fa6d76ab01a3532659378ca54bb00724e1e.tar.bz2
exchange-3df47fa6d76ab01a3532659378ca54bb00724e1e.zip
-fix returning full response
Diffstat (limited to 'src')
-rw-r--r--src/exchange/taler-exchange-httpd_keys.c2
-rw-r--r--src/util/taler-exchange-secmod-eddsa.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/exchange/taler-exchange-httpd_keys.c b/src/exchange/taler-exchange-httpd_keys.c
index 769f8a5e..07c73193 100644
--- a/src/exchange/taler-exchange-httpd_keys.c
+++ b/src/exchange/taler-exchange-httpd_keys.c
@@ -2054,7 +2054,7 @@ TEH_keys_get_handler (const struct TEH_RequestHandler *rh,
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Client provided invalid cherry picking timestamp %s, returning full response\n",
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)
{
diff --git a/src/util/taler-exchange-secmod-eddsa.c b/src/util/taler-exchange-secmod-eddsa.c
index e2a71e6a..195992e1 100644
--- a/src/util/taler-exchange-secmod-eddsa.c
+++ b/src/util/taler-exchange-secmod-eddsa.c
@@ -1108,6 +1108,7 @@ update_keys (void *cls)
duration),
lookahead_sign),
overlap_duration)).rel_value_us) )
+ {
if (GNUNET_OK !=
create_key ())
{
@@ -1115,6 +1116,7 @@ update_keys (void *cls)
GNUNET_SCHEDULER_shutdown ();
return;
}
+ }
/* remove expired keys */
while ( (NULL != keys_head) &&
(0 ==