commit 084a5f6685b603691571f5b6c9b8ad141657602a
parent b7ef3cfd36f40c058bc1fefaa67e251a7cd16399
Author: Christian Grothoff <christian@grothoff.org>
Date: Wed, 14 Apr 2021 15:24:15 +0200
fix rare NPE
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/util/taler-exchange-secmod-eddsa.c b/src/util/taler-exchange-secmod-eddsa.c
@@ -1024,6 +1024,8 @@ create_key (void)
static struct GNUNET_TIME_Absolute
key_action_time (void)
{
+ if (NULL == keys_head)
+ return GNUNET_TIME_UNIT_ZERO_ABS;
return GNUNET_TIME_absolute_min (
GNUNET_TIME_absolute_add (keys_head->anchor,
duration),