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

network: dhcp-pd: fix condition in dhcp_pd_prefix_lost()

This commit is contained in:
Yu Watanabe 2021-12-18 09:46:23 +09:00
parent 059d7b6eae
commit 277521a1ac

View File

@ -667,7 +667,7 @@ void dhcp_pd_prefix_lost(Link *uplink) {
}
SET_FOREACH(route, uplink->manager->routes) {
if (IN_SET(route->source, NETWORK_CONFIG_SOURCE_DHCP4, NETWORK_CONFIG_SOURCE_DHCP6))
if (!IN_SET(route->source, NETWORK_CONFIG_SOURCE_DHCP4, NETWORK_CONFIG_SOURCE_DHCP6))
continue;
if (route->family != AF_INET6)
continue;