summaryrefslogtreecommitdiff
path: root/src/exchange
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-08-06 10:20:58 +0200
committerChristian Grothoff <christian@grothoff.org>2021-08-06 10:20:58 +0200
commitcaf6807856e3044f7e1065d84ca189e4d89b3b12 (patch)
treeef450f7eee7a4496becfd1ecd2cc4221fa8bc686 /src/exchange
parentc71c40d4d62d55730dad032c3ef9f8f645a07efd (diff)
downloadexchange-caf6807856e3044f7e1065d84ca189e4d89b3b12.tar.gz
exchange-caf6807856e3044f7e1065d84ca189e4d89b3b12.tar.bz2
exchange-caf6807856e3044f7e1065d84ca189e4d89b3b12.zip
-fix assertion failure caused by testcase
Diffstat (limited to 'src/exchange')
-rw-r--r--src/exchange/taler-exchange-httpd_keys.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/exchange/taler-exchange-httpd_keys.c b/src/exchange/taler-exchange-httpd_keys.c
index da636d34..4af28b14 100644
--- a/src/exchange/taler-exchange-httpd_keys.c
+++ b/src/exchange/taler-exchange-httpd_keys.c
@@ -980,6 +980,16 @@ denomination_info_cb (
struct TEH_KeyStateHandle *ksh = cls;
struct TEH_DenominationKey *dk;
+ if ( (0 == meta->start.abs_value_us) ||
+ (0 == meta->expire_withdraw.abs_value_us) ||
+ (0 == meta->expire_deposit.abs_value_us) ||
+ (0 == meta->expire_legal.abs_value_us) )
+ {
+ GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+ "Database contains invalid denomination key %s\n",
+ GNUNET_h2s (h_denom_pub));
+ return;
+ }
dk = GNUNET_new (struct TEH_DenominationKey);
dk->denom_pub.rsa_public_key
= GNUNET_CRYPTO_rsa_public_key_dup (denom_pub->rsa_public_key);