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/utils.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'shared/utils.c') 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