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/util/config.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'src/util/config.c') diff --git a/src/util/config.c b/src/util/config.c index 160d541f0..e533a4ec3 100644 --- a/src/util/config.c +++ b/src/util/config.c @@ -45,11 +45,21 @@ TALER_config_get_amount (const struct GNUNET_CONFIGURATION_Handle *cfg, section, option, &str)) + { + GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR, + section, + option); return GNUNET_NO; - if (GNUNET_OK != TALER_string_to_amount (str, - denom)) + } + if (GNUNET_OK != + TALER_string_to_amount (str, + denom)) { GNUNET_free (str); + GNUNET_log_config_invalid (GNUNET_ERROR_TYPE_ERROR, + section, + option, + "valid amount"); return GNUNET_SYSERR; } GNUNET_free (str); -- cgit v1.2.3