Mercurial > hg > dhcpcd
changeset 4492:e9ebe64f38cc draft
dhcp: Ensure that we have DHCP running on the receiving interface
... before trying to process the received BOOTP message on it.
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Mon, 29 Apr 2019 17:32:53 +0100 |
| parents | b792f1688220 |
| children | 67b56c9c868d |
| files | src/dhcp.c |
| diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/dhcp.c Fri Apr 26 14:32:54 2019 +0100 +++ b/src/dhcp.c Mon Apr 29 17:32:53 2019 +0100 @@ -3499,6 +3499,11 @@ logerr(__func__); return; } + if (D_CSTATE(ifp) == NULL) { + logdebugx("%s: received BOOTP for inactive interface", + ifp->name); + return; + } } dhcp_handlebootp(ifp, (struct bootp *)buf, (size_t)bytes,
