]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: dhcp-pd: fix condition in dhcp_pd_prefix_lost()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 18 Dec 2021 00:46:23 +0000 (09:46 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 18 Dec 2021 01:09:07 +0000 (10:09 +0900)
src/network/networkd-dhcp-prefix-delegation.c

index 5f2555fe6e57ea1c7aeb44ff8d6e245a4db3f2f0..949c74bd5892454b2ae192beebff16b4d0c27826 100644 (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;