Mercurial > hg > dhcpcd
changeset 5211:cb2fa76d03bc draft
Remove unused variable.
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Tue, 12 May 2020 11:29:13 +0100 |
| parents | ad11ffaf9e03 |
| children | a66e3414adfb |
| files | src/dhcp.c |
| diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/dhcp.c Tue May 12 11:24:42 2020 +0100 +++ b/src/dhcp.c Tue May 12 11:29:13 2020 +0100 @@ -1149,7 +1149,6 @@ 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 @@ 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;
