aboutsummaryrefslogtreecommitdiff
path: root/src/lib/exchange_api_refund.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/exchange_api_refund.c')
-rw-r--r--src/lib/exchange_api_refund.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/exchange_api_refund.c b/src/lib/exchange_api_refund.c
index 9cb8794d3..b1ea176bf 100644
--- a/src/lib/exchange_api_refund.c
+++ b/src/lib/exchange_api_refund.c
@@ -92,7 +92,6 @@ verify_refund_signature_ok (struct TALER_EXCHANGE_RefundHandle *rh,
92 const json_t *json, 92 const json_t *json,
93 struct TALER_ExchangePublicKeyP *exchange_pub, 93 struct TALER_ExchangePublicKeyP *exchange_pub,
94 struct TALER_ExchangeSignatureP *exchange_sig) 94 struct TALER_ExchangeSignatureP *exchange_sig)
95
96{ 95{
97 const struct TALER_EXCHANGE_Keys *key_state; 96 const struct TALER_EXCHANGE_Keys *key_state;
98 struct GNUNET_JSON_Specification spec[] = { 97 struct GNUNET_JSON_Specification spec[] = {
@@ -149,6 +148,7 @@ handle_refund_finished (void *cls,
149 struct TALER_ExchangeSignatureP exchange_sig; 148 struct TALER_ExchangeSignatureP exchange_sig;
150 struct TALER_ExchangePublicKeyP *ep = NULL; 149 struct TALER_ExchangePublicKeyP *ep = NULL;
151 struct TALER_ExchangeSignatureP *es = NULL; 150 struct TALER_ExchangeSignatureP *es = NULL;
151 struct TALER_Amount *rf = NULL;
152 const json_t *j = response; 152 const json_t *j = response;
153 struct TALER_EXCHANGE_HttpResponse hr = { 153 struct TALER_EXCHANGE_HttpResponse hr = {
154 .reply = j, 154 .reply = j,
@@ -176,6 +176,7 @@ handle_refund_finished (void *cls,
176 { 176 {
177 ep = &exchange_pub; 177 ep = &exchange_pub;
178 es = &exchange_sig; 178 es = &exchange_sig;
179 rf = &rh->depconf.refund_fee;
179 } 180 }
180 break; 181 break;
181 case MHD_HTTP_BAD_REQUEST: 182 case MHD_HTTP_BAD_REQUEST:
@@ -234,6 +235,7 @@ handle_refund_finished (void *cls,
234 } 235 }
235 rh->cb (rh->cb_cls, 236 rh->cb (rh->cb_cls,
236 &hr, 237 &hr,
238 rf,
237 ep, 239 ep,
238 es); 240 es);
239 TALER_EXCHANGE_refund_cancel (rh); 241 TALER_EXCHANGE_refund_cancel (rh);