From: Roy Marples Date: Thu, 6 Aug 2015 12:52:56 +0000 (+0000) Subject: If we add authentication, ensure saved lease has it. X-Git-Tag: v6.9.2~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cba99e227e09906c4c544d1b6084d5953d60fc99;p=thirdparty%2Fdhcpcd.git If we add authentication, ensure saved lease has it. --- diff --git a/dhcp.c b/dhcp.c index e7b4b4eb..28b15492 100644 --- a/dhcp.c +++ b/dhcp.c @@ -1232,6 +1232,11 @@ read_lease(struct interface *ifp) else logger(ifp->ctx, LOG_DEBUG, "%s: accepted reconfigure key", ifp->name); + } else if (ifp->options->auth.options & DHCPCD_AUTH_SENDREQUIRE) { + logger(ifp->ctx, LOG_ERR, + "%s: authentication now required", ifp->name); + free(dhcp); + return NULL; } return dhcp;