summaryrefslogtreecommitdiff
path: root/src/exchange/taler-exchange-httpd_age-withdraw_reveal.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-11-22 22:02:24 +0100
committerChristian Grothoff <christian@grothoff.org>2023-11-22 22:02:24 +0100
commit6b9d61a09814747667e11dde5cfe4193c6aacdfa (patch)
treeed3f339c7f0b1ca85accbb329085f6896152e26d /src/exchange/taler-exchange-httpd_age-withdraw_reveal.c
parent637ce389c90f590355e571d92bd09e2bdd8c6fb8 (diff)
downloadexchange-6b9d61a09814747667e11dde5cfe4193c6aacdfa.tar.gz
exchange-6b9d61a09814747667e11dde5cfe4193c6aacdfa.tar.bz2
exchange-6b9d61a09814747667e11dde5cfe4193c6aacdfa.zip
-fix NPE on certain errors
Diffstat (limited to 'src/exchange/taler-exchange-httpd_age-withdraw_reveal.c')
-rw-r--r--src/exchange/taler-exchange-httpd_age-withdraw_reveal.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/exchange/taler-exchange-httpd_age-withdraw_reveal.c b/src/exchange/taler-exchange-httpd_age-withdraw_reveal.c
index 9b9f1cb88..632368ded 100644
--- a/src/exchange/taler-exchange-httpd_age-withdraw_reveal.c
+++ b/src/exchange/taler-exchange-httpd_age-withdraw_reveal.c
@@ -597,8 +597,9 @@ TEH_handler_age_withdraw_reveal (
} while(0);
GNUNET_JSON_parse_free (spec);
- for (unsigned int i = 0; i<actx.num_coins; i++)
- TALER_blinded_denom_sig_free (&actx.commitment.denom_sigs[i]);
+ if (NULL != actx.commitment.denom_sigs)
+ for (unsigned int i = 0; i<actx.num_coins; i++)
+ TALER_blinded_denom_sig_free (&actx.commitment.denom_sigs[i]);
GNUNET_free (actx.commitment.denom_sigs);
GNUNET_free (actx.commitment.denom_pub_hashes);
GNUNET_free (actx.commitment.denom_serials);