diff options
Diffstat (limited to 'shared')
| -rw-r--r-- | shared/config-parser.c | 1 | ||||
| -rw-r--r-- | shared/utils.c | 3 | 
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); | 
