From: Yu Watanabe Date: Sat, 18 Dec 2021 00:46:23 +0000 (+0900) Subject: network: dhcp-pd: fix condition in dhcp_pd_prefix_lost() X-Git-Tag: v250-rc3~16^2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=277521a1ac6b4246f9f35c5a288dfdc190a99386;p=thirdparty%2Fsystemd.git network: dhcp-pd: fix condition in dhcp_pd_prefix_lost() --- diff --git a/src/network/networkd-dhcp-prefix-delegation.c b/src/network/networkd-dhcp-prefix-delegation.c index 5f2555fe6e5..949c74bd589 100644 --- a/src/network/networkd-dhcp-prefix-delegation.c +++ b/src/network/networkd-dhcp-prefix-delegation.c @@ -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;