network: fix ABRT

Fixes #14811 and oss-fuzz#20548.
This commit is contained in:
Yu Watanabe
2020-02-07 17:18:58 +09:00
parent e2c4070edf
commit f0c1ad308d
2 changed files with 7 additions and 1 deletions
+7 -1
View File
@@ -999,7 +999,13 @@ int config_parse_address_generation_type(
else {
token->address_generation_type = IPV6_TOKEN_ADDRESS_GENERATION_STATIC;
p = rvalue;
}
}
if (isempty(p)) {
log_syntax(unit, LOG_ERR, filename, line, 0,
"Invalid IPv6Token= , ignoring assignment: %s", rvalue);
return 0;
}
r = in_addr_from_string(AF_INET6, p, &buffer);
if (r < 0) {
Binary file not shown.