summaryrefslogtreecommitdiff
path: root/src/network/networkd-dhcp-prefix-delegation.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2021-12-18 09:46:23 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-12-18 10:09:07 +0900
commit277521a1ac6b4246f9f35c5a288dfdc190a99386 (patch)
tree8e3b524abeb72872433acddb2e43c23303553366 /src/network/networkd-dhcp-prefix-delegation.c
parent059d7b6eae827e73c73633bcc40fe74f3696f3f6 (diff)
downloadsystemd-277521a1ac6b4246f9f35c5a288dfdc190a99386.tar.gz
network: dhcp-pd: fix condition in dhcp_pd_prefix_lost()
Diffstat (limited to 'src/network/networkd-dhcp-prefix-delegation.c')
-rw-r--r--src/network/networkd-dhcp-prefix-delegation.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkd-dhcp-prefix-delegation.c b/src/network/networkd-dhcp-prefix-delegation.c
index 5f2555fe6e..949c74bd58 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;