aboutsummaryrefslogtreecommitdiff
path: root/src/exchange-lib/exchange_api_refund.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-05-24 20:37:23 +0200
committerChristian Grothoff <christian@grothoff.org>2016-05-24 20:37:23 +0200
commit079ef7cb6f911d97a796acf621d2f1212dc9c282 (patch)
tree181d9e7485dd8916c795569e642010f81d2bbf02 /src/exchange-lib/exchange_api_refund.c
parentf471cfcec5aaa7283ce0d6f61b2a321d101efff0 (diff)
fixing #4520: be more aggressive at asserting when API is violated
Diffstat (limited to 'src/exchange-lib/exchange_api_refund.c')
-rw-r--r--src/exchange-lib/exchange_api_refund.c8
1 files changed, 2 insertions, 6 deletions
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;