summaryrefslogtreecommitdiff
path: root/src/exchange
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-05-20 15:52:40 +0200
committerChristian Grothoff <christian@grothoff.org>2016-05-20 15:52:40 +0200
commite39beff2722683cfb7a2c70f2269795a074ee778 (patch)
treeb287c6873b87caeeca01b61b4a16a801cc54be45 /src/exchange
parent35509528bc10546f11934ab3e965e9de16a6910f (diff)
downloadexchange-e39beff2722683cfb7a2c70f2269795a074ee778.tar.gz
exchange-e39beff2722683cfb7a2c70f2269795a074ee778.tar.bz2
exchange-e39beff2722683cfb7a2c70f2269795a074ee778.zip
fix init before use in new refund logic
Diffstat (limited to 'src/exchange')
-rw-r--r--src/exchange/taler-exchange-httpd_responses.c2
1 files changed, 1 insertions, 1 deletions
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));
}