1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-10 01:17:44 +03:00

network: fix ABRT

Fixes #14811 and oss-fuzz#20548.
This commit is contained in:
Yu Watanabe 2020-02-07 13:35:29 +09:00
parent e2c4070edf
commit f0c1ad308d
2 changed files with 7 additions and 1 deletions

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.