mirror of
https://github.com/systemd/systemd.git
synced 2024-10-30 14:55:37 +03:00
network: set_put() here does not returns -EEXIST
This commit is contained in:
parent
5279914e2c
commit
cdd22d5129
@ -1658,11 +1658,6 @@ int config_parse_dhcp_black_listed_ip_address(
|
||||
return log_oom();
|
||||
|
||||
r = set_put(network->dhcp_black_listed_ip, UINT32_TO_PTR(ip.in.s_addr));
|
||||
if (r == -EEXIST) {
|
||||
log_syntax(unit, LOG_WARNING, filename, line, r,
|
||||
"DHCP black listed ip address is duplicated, ignoring assignment: %s", n);
|
||||
continue;
|
||||
}
|
||||
if (r < 0)
|
||||
log_syntax(unit, LOG_ERR, filename, line, r,
|
||||
"Failed to store DHCP black listed ip address '%s', ignoring assignment: %m", n);
|
||||
|
Loading…
Reference in New Issue
Block a user