From a71d847b0a752375e8fa2c82c634a800bede2f9b Mon Sep 17 00:00:00 2001 From: David Härdeman Date: Thu, 25 Jun 2020 19:14:50 +0200 Subject: Only check for password if/when required --- shared/config-parser.c | 1 - shared/utils.c | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'shared') diff --git a/shared/config-parser.c b/shared/config-parser.c index 1f44db4..a8e949d 100644 --- a/shared/config-parser.c +++ b/shared/config-parser.c @@ -281,7 +281,6 @@ strtosockaddrs(const char *str, struct cfg_value *rvalue, bool async) } else { /* Unknown */ - error("unable to parse address: %s", str); goto error; } diff --git a/shared/utils.c b/shared/utils.c index 1284a73..c71f1f7 100644 --- a/shared/utils.c +++ b/shared/utils.c @@ -142,7 +142,8 @@ strtou16_strict(const char *str, uint16_t *result) char *end; long val; - //assert_return(!empty_str(str) && result, -EINVAL); + if (empty_str(str)) + return -EINVAL; errno = 0; val = strtol(str, &end, 10); -- cgit v1.2.3