summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-01-19 21:05:53 +0100
committerChristian Grothoff <christian@grothoff.org>2020-01-19 21:05:53 +0100
commitc3ec8c929dd660bde7e79f378185760343ffd0fe (patch)
tree383a7f5db40e79a410b66ccabaa64051b2c94549
parent9cc2c7a208342c2bdf72d7e3a055d0e561e5302c (diff)
downloadexchange-c3ec8c929dd660bde7e79f378185760343ffd0fe.tar.gz
exchange-c3ec8c929dd660bde7e79f378185760343ffd0fe.tar.bz2
exchange-c3ec8c929dd660bde7e79f378185760343ffd0fe.zip
also check currency unit
-rw-r--r--src/exchange/taler-exchange-aggregator.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/exchange/taler-exchange-aggregator.c b/src/exchange/taler-exchange-aggregator.c
index 0718fdda5..2869e5fa1 100644
--- a/src/exchange/taler-exchange-aggregator.c
+++ b/src/exchange/taler-exchange-aggregator.c
@@ -608,11 +608,13 @@ exchange_serve_process_config ()
"taler",
"CURRENCY_ROUND_UNIT",
&currency_round_unit)) ||
+ (0 != strcasecmp (exchange_currency_string,
+ currency_round_unit.currency)) ||
( (0 != currency_round_unit.fraction) &&
(0 != currency_round_unit.value) ) )
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
- "Invalid value specified in `TALER' under `CURRENCY_ROUND_UNIT'\n");
+ "Invalid value specified in section `TALER' under `CURRENCY_ROUND_UNIT'\n");
return GNUNET_SYSERR;
}
}