commit 997985637dbd3229066996d3d3afb24729573d21
parent 6d4e8e1521125871068928618e4c0f1db8a39b1f
Author: Christian Grothoff <christian@grothoff.org>
Date: Wed, 18 Nov 2026 17:50:19 +0100
fix 11217
Diffstat:
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/exchange/taler-exchange-httpd_secmod-helpers.c b/src/exchange/taler-exchange-httpd_secmod-helpers.c
@@ -645,11 +645,12 @@ TEH_SECMOD_denom_cs_batch_r_pub (
dk = TEH_keys_denomination_by_hash (&h_denom_pubs[i],
NULL,
NULL);
- if (NULL == hd)
+ /* dk is NULL for a key the helper announced but the offline
+ tool has not signed yet */
+ if ( (NULL == hd) ||
+ (NULL == dk) )
return TALER_EC_EXCHANGE_GENERIC_DENOMINATION_KEY_UNKNOWN;
- GNUNET_assert (NULL != dk);
-
if (GNUNET_CRYPTO_BSA_CS !=
hd->denom_pub.bsign_pub_key->cipher)
return TALER_EC_EXCHANGE_GENERIC_INVALID_DENOMINATION_CIPHER_FOR_OPERATION