diff options
| author | Christos Zoulas <christos@netbsd.org> | 2020-01-27 12:56:04 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2020-01-27 12:57:34 +0000 |
| commit | 378276f181314073d50399ff62e8232d0b9a8d3f (patch) | |
| tree | 00d2ae30845a84cb8448bb79e96a16a40de2d01b | |
| parent | 34213ca96a3792824420968206b006076317908e (diff) | |
| download | dhcpcd-378276f181314073d50399ff62e8232d0b9a8d3f.tar.xz | |
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.
| -rw-r--r-- | src/script.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script.c b/src/script.c index 4d0ba447..3fdb1f6b 100644 --- a/src/script.c +++ b/src/script.c @@ -453,7 +453,7 @@ make_env(const struct interface *ifp, const char *reason) 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; } |
