diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-12-18 09:46:23 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-12-18 10:09:07 +0900 |
commit | 277521a1ac6b4246f9f35c5a288dfdc190a99386 (patch) | |
tree | 8e3b524abeb72872433acddb2e43c23303553366 | |
parent | 059d7b6eae827e73c73633bcc40fe74f3696f3f6 (diff) | |
download | systemd-277521a1ac6b4246f9f35c5a288dfdc190a99386.tar.gz |
network: dhcp-pd: fix condition in dhcp_pd_prefix_lost()
-rw-r--r-- | src/network/networkd-dhcp-prefix-delegation.c | 2 |
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; |