also check currency unit

This commit is contained in:
Christian Grothoff 2020-01-19 21:05:53 +01:00
parent 9cc2c7a208
commit c3ec8c929d
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -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;
}
}