From 9e92cc608932abc6caf53dce7cd96984f793f4e3 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 15 Jul 2020 21:41:09 +0200 Subject: Fix #6375 --- src/auditor/report-lib.c | 14 ++++++++------ src/auditor/taler-helper-auditor-wire.c | 4 ---- 2 files changed, 8 insertions(+), 10 deletions(-) (limited to 'src/auditor') 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; } -- cgit v1.2.3