From: Roy Marples Date: Thu, 16 Apr 2020 22:28:34 +0000 (+0100) Subject: inet6: Don't regen temporary addresses without an IPv6 state X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=717e0411669be2f39460c7fb3952f55024883485;p=thirdparty%2Fdhcpcd.git inet6: Don't regen temporary addresses without an IPv6 state As this is not possible. --- diff --git a/src/ipv6.c b/src/ipv6.c index 570879ae..3e0dcc0c 100644 --- a/src/ipv6.c +++ b/src/ipv6.c @@ -2073,10 +2073,13 @@ ipv6_regentempaddrs(void *arg) struct ipv6_state *state; struct ipv6_addr *ia; + state = IPV6_STATE(ifp); + if (state == NULL) + return; + ipv6_regen_desync(ifp, true); clock_gettime(CLOCK_MONOTONIC, &tv); - state = IPV6_STATE(ifp); TAILQ_FOREACH(ia, &state->addrs, next) { if (ia->flags & IPV6_AF_TEMPORARY && !(ia->flags & IPV6_AF_STALE))