]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix prior - always return if lease is invalid.
authorRoy Marples <roy@marples.name>
Mon, 10 Sep 2018 13:57:49 +0000 (14:57 +0100)
committerRoy Marples <roy@marples.name>
Mon, 10 Sep 2018 13:57:49 +0000 (14:57 +0100)
src/dhcp6.c

index 2a6dcb2540f0d274411b2f4e1f8ead20d933355a..d6846524a5c1e6714d25b1f2c98f8c00ca96b104 100644 (file)
@@ -3315,10 +3315,9 @@ dhcp6_recvif(struct interface *ifp, struct dhcp6_message *r, size_t len)
                                 * The currently held lease is still valid
                                 * until a new one is found.
                                 */
-                               if (state->state != DH6S_DISCOVER) {
+                               if (state->state != DH6S_DISCOVER)
                                        dhcp6_startdiscover(ifp);
-                                       return;
-                               }
+                               return;
                        }
                        if (state->state == DH6S_DISCOVER)
                                state->state = DH6S_REQUEST;