From: Christos Zoulas Date: Mon, 27 Jan 2020 12:56:04 +0000 (+0000) Subject: IPv4LL: A state might not always exist when running the script. X-Git-Tag: v8.1.6~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=378276f181314073d50399ff62e8232d0b9a8d3f;p=thirdparty%2Fdhcpcd.git 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. --- 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; }