]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Don't re-enter the discover phase on receipt of an invalid offer if we are already...
authorRoy Marples <roy@marples.name>
Mon, 3 Oct 2016 16:42:55 +0000 (16:42 +0000)
committerRoy Marples <roy@marples.name>
Mon, 3 Oct 2016 16:42:55 +0000 (16:42 +0000)
dhcp6.c

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