gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-exchange] branch master updated: tolerate extreme case where all


From: gnunet
Subject: [taler-exchange] branch master updated: tolerate extreme case where all denominations expired
Date: Mon, 12 Apr 2021 21:48:45 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new 57cb2d1c tolerate extreme case where all denominations expired
57cb2d1c is described below

commit 57cb2d1ca62329c9b0c59aa6424bab7d29e66c07
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Mon Apr 12 21:48:43 2021 +0200

    tolerate extreme case where all denominations expired
---
 src/util/taler-exchange-secmod-rsa.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/util/taler-exchange-secmod-rsa.c 
b/src/util/taler-exchange-secmod-rsa.c
index 0a6d797e..0b2da99d 100644
--- a/src/util/taler-exchange-secmod-rsa.c
+++ b/src/util/taler-exchange-secmod-rsa.c
@@ -1195,6 +1195,8 @@ create_key (struct Denomination *denom,
 static struct GNUNET_TIME_Absolute
 denomination_action_time (const struct Denomination *denom)
 {
+  if (NULL == denom->keys_head)
+    return GNUNET_TIME_UNIT_ZERO_ABS;
   return GNUNET_TIME_absolute_min (
     GNUNET_TIME_absolute_add (denom->keys_head->anchor,
                               denom->duration_withdraw),
@@ -1340,9 +1342,9 @@ update_denominations (void *cls)
   struct GNUNET_TIME_Absolute now;
 
   (void) cls;
+  keygen_task = NULL;
   now = GNUNET_TIME_absolute_get ();
   (void) GNUNET_TIME_round_abs (&now);
-  keygen_task = NULL;
   do {
     denom = denom_head;
     update_keys (denom,

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]