Mercurial > hg > dhcpcd
changeset 5296:3fd9a92dd852 draft
ifaces could be NULL here
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Tue, 02 Jun 2020 14:51:20 +0100 |
| parents | 3af9c96302a8 |
| children | 477edd06fea7 |
| files | src/dhcpcd.c |
| diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/dhcpcd.c Tue Jun 02 11:48:35 2020 +0100 +++ b/src/dhcpcd.c Tue Jun 02 14:51:20 2020 +0100 @@ -1341,6 +1341,9 @@ struct interface *ifp; ctx->options |= DHCPCD_EXITING; + if (ctx->ifaces == NULL) + return; + /* Drop the last interface first */ TAILQ_FOREACH_REVERSE(ifp, ctx->ifaces, if_head, next) { if (!ifp->active)
