From 2f715c27f82584cb65855785144877da628fe35c Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 6 Oct 2017 20:02:28 +0200 Subject: check return value from TALER_JSON_hash --- src/exchange-lib/exchange_api_deposit.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/exchange-lib/exchange_api_deposit.c') diff --git a/src/exchange-lib/exchange_api_deposit.c b/src/exchange-lib/exchange_api_deposit.c index 4937b14a..d90b1aa7 100644 --- a/src/exchange-lib/exchange_api_deposit.c +++ b/src/exchange-lib/exchange_api_deposit.c @@ -415,9 +415,13 @@ TALER_EXCHANGE_deposit (struct TALER_EXCHANGE_Handle *exchange, GNUNET_assert (GNUNET_YES == MAH_handle_is_ready (exchange)); /* initialize h_wire */ - GNUNET_assert (GNUNET_OK == - TALER_JSON_hash (wire_details, - &h_wire)); + if (GNUNET_OK != + TALER_JSON_hash (wire_details, + &h_wire)) + { + GNUNET_break (0); + return NULL; + } key_state = TALER_EXCHANGE_get_keys (exchange); dki = TALER_EXCHANGE_get_denomination_key (key_state, denom_pub); -- cgit v1.2.3