commit 6b9d61a09814747667e11dde5cfe4193c6aacdfa parent 637ce389c90f590355e571d92bd09e2bdd8c6fb8 Author: Christian Grothoff <christian@grothoff.org> Date: Wed, 22 Nov 2023 22:02:24 +0100 -fix NPE on certain errors Diffstat:
| M | src/exchange/taler-exchange-httpd_age-withdraw_reveal.c | | | 5 | +++-- |
1 file 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 @@ -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);