network: dhcp6: fix condtion check
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 3 Feb 2021 15:52:28 +0000 (00:52 +0900)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 12 Mar 2021 17:17:28 +0000 (18:17 +0100)
(cherry picked from commit b54aed29c61b9b86dc9cfa214c946586ea1f4972)
(cherry picked from commit 8f2c4ebba2dff6b05b622cda0b1b83d30c20abcb)

src/network/networkd-dhcp6.c

index 675f19c92dece3478fb07ecaa434d7877a44bd5b..d2d6ffd1b92394f1e402adde67a0456a283133f4 100644 (file)
@@ -129,7 +129,7 @@ static int dhcp6_pd_remove_old(Link *link, bool force) {
         assert(link);
         assert(link->manager);
 
-        if (!force && (link->dhcp6_pd_address_messages != 0 || link->dhcp6_pd_route_configured != 0))
+        if (!force && (link->dhcp6_pd_address_messages != 0 || link->dhcp6_pd_route_messages != 0))
                 return 0;
 
         if (set_isempty(link->dhcp6_pd_addresses_old) && set_isempty(link->dhcp6_pd_routes_old))