Mercurial > hg > dhcpcd
changeset 5011:ec0c1c259be4 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 | 0f76dcb791a4 |
| children | 3a9635d6ce84 |
| files | src/script.c |
| diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/script.c Sun Jan 26 16:44:40 2020 +0000 +++ b/src/script.c Mon Jan 27 12:56:04 2020 +0000 @@ -465,7 +465,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; }
