Mercurial > hg > dhcpcd
changeset 5010:6b2254059ac4 draft
IPv4LL: A state might not always exist when running the script.
For example, we deleted existing IPv4LL addresses that dhcpcd
doesn't directly control when we obtained a DHCP lease.
| author | Christos Zoulas <christos@netbsd.org> |
|---|---|
| date | Mon, 27 Jan 2020 12:56:04 +0000 |
| parents | 4844a27436db |
| children | b1cda92cbf98 |
| files | src/script.c |
| diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/script.c Wed Jan 22 19:25:14 2020 +0000 +++ b/src/script.c Mon Jan 27 12:56:04 2020 +0000 @@ -453,7 +453,7 @@ dumplease: #ifdef INET #ifdef IPV4LL - if (protocol == PROTO_IPV4LL) { + if (protocol == PROTO_IPV4LL && istate) { if (ipv4ll_env(fp, istate->down ? "old" : "new", ifp) == -1) goto eexit; }
