From e39beff2722683cfb7a2c70f2269795a074ee778 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 20 May 2016 15:52:40 +0200 Subject: fix init before use in new refund logic --- src/exchange/taler-exchange-httpd_responses.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/exchange') diff --git a/src/exchange/taler-exchange-httpd_responses.c b/src/exchange/taler-exchange-httpd_responses.c index 26f0d76a4..d3a73d38c 100644 --- a/src/exchange/taler-exchange-httpd_responses.c +++ b/src/exchange/taler-exchange-httpd_responses.c @@ -512,6 +512,7 @@ compile_transaction_history (const struct TALER_EXCHANGEDB_TransactionList *tl) TALER_amount_hton (&rr.refund_fee, &refund->refund_fee); /* internal sanity check before we hand out a bogus sig... */ + sig = &refund->merchant_sig.eddsa_sig; if (GNUNET_OK != GNUNET_CRYPTO_eddsa_verify (TALER_SIGNATURE_MERCHANT_REFUND, &rr.purpose, @@ -522,7 +523,6 @@ compile_transaction_history (const struct TALER_EXCHANGEDB_TransactionList *tl) json_decref (history); return NULL; } - sig = &refund->merchant_sig.eddsa_sig; details = GNUNET_JSON_from_data (&rr.purpose, sizeof (struct TALER_RefundRequestPS)); } -- cgit v1.2.3