From 079ef7cb6f911d97a796acf621d2f1212dc9c282 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 24 May 2016 20:37:23 +0200 Subject: fixing #4520: be more aggressive at asserting when API is violated --- src/exchange-lib/exchange_api_refund.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/exchange-lib/exchange_api_refund.c') diff --git a/src/exchange-lib/exchange_api_refund.c b/src/exchange-lib/exchange_api_refund.c index 3a840c7c4..d622ddc75 100644 --- a/src/exchange-lib/exchange_api_refund.c +++ b/src/exchange-lib/exchange_api_refund.c @@ -243,12 +243,8 @@ TALER_EXCHANGE_refund (struct TALER_EXCHANGE_Handle *exchange, json_t *refund_obj; CURL *eh; - if (GNUNET_YES != - MAH_handle_is_ready (exchange)) - { - GNUNET_break (0); - return NULL; - } + GNUNET_assert (GNUNET_YES == + MAH_handle_is_ready (exchange)); rr.purpose.purpose = htonl (TALER_SIGNATURE_MERCHANT_REFUND); rr.purpose.size = htonl (sizeof (struct TALER_RefundRequestPS)); rr.h_contract = *h_contract; -- cgit v1.2.3