summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-04-14 15:24:15 +0200
committerChristian Grothoff <christian@grothoff.org>2021-04-14 15:24:15 +0200
commit084a5f6685b603691571f5b6c9b8ad141657602a (patch)
tree8f6efb5d1d234f53583b418813a9a0cc1c6056e2 /src
parentb7ef3cfd36f40c058bc1fefaa67e251a7cd16399 (diff)
downloadexchange-084a5f6685b603691571f5b6c9b8ad141657602a.tar.gz
exchange-084a5f6685b603691571f5b6c9b8ad141657602a.tar.bz2
exchange-084a5f6685b603691571f5b6c9b8ad141657602a.zip
fix rare NPE
Diffstat (limited to 'src')
-rw-r--r--src/util/taler-exchange-secmod-eddsa.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util/taler-exchange-secmod-eddsa.c b/src/util/taler-exchange-secmod-eddsa.c
index 7e25ac7e1..e2a71e6a9 100644
--- 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),