summaryrefslogtreecommitdiff
path: root/src/auditor
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-07-15 21:41:09 +0200
committerChristian Grothoff <christian@grothoff.org>2020-07-15 21:41:09 +0200
commit9e92cc608932abc6caf53dce7cd96984f793f4e3 (patch)
tree13020da2136be686467e159091ebe8c8630a3b39 /src/auditor
parent8f0a4b6095fd05e101fc5389cc46ec211083979a (diff)
downloadexchange-9e92cc608932abc6caf53dce7cd96984f793f4e3.tar.gz
exchange-9e92cc608932abc6caf53dce7cd96984f793f4e3.tar.bz2
exchange-9e92cc608932abc6caf53dce7cd96984f793f4e3.zip
Fix #6375
Diffstat (limited to 'src/auditor')
-rw-r--r--src/auditor/report-lib.c14
-rw-r--r--src/auditor/taler-helper-auditor-wire.c4
2 files changed, 8 insertions, 10 deletions
diff --git a/src/auditor/report-lib.c b/src/auditor/report-lib.c
index 0956bcaee..4aa8b45b6 100644
--- a/src/auditor/report-lib.c
+++ b/src/auditor/report-lib.c
@@ -701,14 +701,16 @@ TALER_ARL_init (const struct GNUNET_CONFIGURATION_Handle *c)
return GNUNET_SYSERR;
}
{
- if (GNUNET_OK !=
- TALER_config_get_amount (TALER_ARL_cfg,
- "taler",
- "CURRENCY_ROUND_UNIT",
- &TALER_ARL_currency_round_unit))
+ if ( (GNUNET_OK !=
+ TALER_config_get_amount (TALER_ARL_cfg,
+ "taler",
+ "CURRENCY_ROUND_UNIT",
+ &TALER_ARL_currency_round_unit)) ||
+ ( (0 != TALER_ARL_currency_round_unit.fraction) &&
+ (0 != TALER_ARL_currency_round_unit.value) ) )
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
- "Invalid or missing amount in `TALER' under `CURRENCY_ROUND_UNIT'\n");
+ "Need non-zero value in section `TALER' under `CURRENCY_ROUND_UNIT'\n");
return GNUNET_SYSERR;
}
}
diff --git a/src/auditor/taler-helper-auditor-wire.c b/src/auditor/taler-helper-auditor-wire.c
index 7eb3a0473..5e5d16748 100644
--- a/src/auditor/taler-helper-auditor-wire.c
+++ b/src/auditor/taler-helper-auditor-wire.c
@@ -2076,10 +2076,6 @@ run (void *cls,
"TINY_AMOUNT",
&tiny_amount))
{
- GNUNET_log_config_invalid (GNUNET_ERROR_TYPE_ERROR,
- "auditor",
- "TINY_AMOUNT",
- "invalid amount");
global_ret = 1;
return;
}