From 023d14bec128f9031ec694c7a84fcabeedb68366 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Thu, 16 Apr 2020 23:28:34 +0100 Subject: [PATCH] inet6: Don't regen temporary addresses without an IPv6 state As this is not possible. --- src/ipv6.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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)) -- 2.47.3