From: Roy Marples Date: Mon, 10 Sep 2018 13:57:49 +0000 (+0100) Subject: Fix prior - always return if lease is invalid. X-Git-Tag: v7.1.0~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca623a4004ec47225827f4c327f0811ab81df1f8;p=thirdparty%2Fdhcpcd.git Fix prior - always return if lease is invalid. --- diff --git a/src/dhcp6.c b/src/dhcp6.c index 2a6dcb25..d6846524 100644 --- a/src/dhcp6.c +++ b/src/dhcp6.c @@ -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;