summaryrefslogtreecommitdiff
path: root/shared
diff options
context:
space:
mode:
authorDavid Härdeman <david@hardeman.nu>2020-06-25 19:14:50 +0200
committerDavid Härdeman <david@hardeman.nu>2020-06-25 19:14:50 +0200
commita71d847b0a752375e8fa2c82c634a800bede2f9b (patch)
tree3b31c7f6eac81ec320e56fba03cf7aebc3d44356 /shared
parent28606456dd6b110326c3027ea078b0409afeba3b (diff)
Only check for password if/when required
Diffstat (limited to 'shared')
-rw-r--r--shared/config-parser.c1
-rw-r--r--shared/utils.c3
2 files changed, 2 insertions, 2 deletions
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);