From: Roy Marples Date: Tue, 12 May 2020 10:29:13 +0000 (+0100) Subject: Remove unused variable. X-Git-Tag: v9.1.0~74 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b27525d5a2354b5f4a600672ce6c59bab42d3e27;p=thirdparty%2Fdhcpcd.git Remove unused variable. --- diff --git a/src/dhcp.c b/src/dhcp.c index 6417f7f5..08f85c9a 100644 --- a/src/dhcp.c +++ b/src/dhcp.c @@ -1149,7 +1149,6 @@ read_lease(struct interface *ifp, struct bootp **bootp) uint8_t buf[FRAMELEN_MAX]; } buf; struct dhcp_state *state = D_STATE(ifp); - struct bootp *lease; ssize_t sbytes; size_t bytes; uint8_t type; @@ -1201,7 +1200,7 @@ read_lease(struct interface *ifp, struct bootp **bootp) DHO_AUTHENTICATION, &auth_len); if (auth) { if (dhcp_auth_validate(&state->auth, &ifp->options->auth, - lease, bytes, 4, type, auth, auth_len) == NULL) + &buf.bootp, bytes, 4, type, auth, auth_len) == NULL) { logerr("%s: authentication failed", ifp->name); return 0;