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.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/exchange_api_refund.c b/src/lib/exchange_api_refund.c
index b1ea176bf..6f91389f1 100644
--- a/src/lib/exchange_api_refund.c
+++ b/src/lib/exchange_api_refund.c
@@ -148,7 +148,8 @@ handle_refund_finished (void *cls,
148 struct TALER_ExchangeSignatureP exchange_sig; 148 struct TALER_ExchangeSignatureP exchange_sig;
149 struct TALER_ExchangePublicKeyP *ep = NULL; 149 struct TALER_ExchangePublicKeyP *ep = NULL;
150 struct TALER_ExchangeSignatureP *es = NULL; 150 struct TALER_ExchangeSignatureP *es = NULL;
151 struct TALER_Amount *rf = NULL; 151 struct TALER_Amount ra;
152 const struct TALER_Amount *rf = NULL;
152 const json_t *j = response; 153 const json_t *j = response;
153 struct TALER_EXCHANGE_HttpResponse hr = { 154 struct TALER_EXCHANGE_HttpResponse hr = {
154 .reply = j, 155 .reply = j,
@@ -176,7 +177,9 @@ handle_refund_finished (void *cls,
176 { 177 {
177 ep = &exchange_pub; 178 ep = &exchange_pub;
178 es = &exchange_sig; 179 es = &exchange_sig;
179 rf = &rh->depconf.refund_fee; 180 TALER_amount_ntoh (&ra,
181 &rh->depconf.refund_fee);
182 rf = &ra;
180 } 183 }
181 break; 184 break;
182 case MHD_HTTP_BAD_REQUEST: 185 case MHD_HTTP_BAD_REQUEST: