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: v9.0.0~75 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e933e7d18b4dbf2efce2e8652eff31d8bea0791f;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 6189a4c1..68aadff7 100644 --- a/src/script.c +++ b/src/script.c @@ -465,7 +465,7 @@ make_env(struct dhcpcd_ctx *ctx, const struct interface *ifp, 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; }