]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Revert prior and test for DH6S_REBIND rather than not DH6S_DISCOVER.
authorRoy Marples <roy@marples.name>
Mon, 3 Oct 2016 17:55:43 +0000 (17:55 +0000)
committerRoy Marples <roy@marples.name>
Mon, 3 Oct 2016 17:55:43 +0000 (17:55 +0000)
dhcp6.c

diff --git a/dhcp6.c b/dhcp6.c
index b00ae334a1ad8e7e1d4b1869930e610262a493fb..4f6637004e5b131213f8beaac88d61b4cde38e3c 100644 (file)
--- a/dhcp6.c
+++ b/dhcp6.c
@@ -2923,7 +2923,7 @@ dhcp6_handledata(void *arg)
                                /* PD doesn't use CONFIRM, so REBIND could
                                 * throw up an invalid prefix if we
                                 * changed link */
-                               if (state->state != DH6S_DISCOVER &&
+                               if (state->state == DH6S_REBIND &&
                                    dhcp6_hasprefixdelegation(ifp))
                                        dhcp6_startdiscover(ifp);
 #endif