From: Roy Marples Date: Sun, 12 Apr 2020 13:59:52 +0000 (+0100) Subject: Fix build on old BSD. X-Git-Tag: v8.1.8~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ffd67b2ae7f738e91b55909fb124dc9c339cbf72;p=thirdparty%2Fdhcpcd.git Fix build on old BSD. --- diff --git a/src/dhcp6.c b/src/dhcp6.c index 3ad5d9ca..9517f156 100644 --- a/src/dhcp6.c +++ b/src/dhcp6.c @@ -3943,16 +3943,17 @@ dhcp6_free(struct interface *ifp) void dhcp6_abort(struct interface *ifp) { -#ifdef ND6_ADVERTISE struct dhcp6_state *state; +#ifdef ND6_ADVERTISE struct ipv6_addr *ia; #endif eloop_timeout_delete(ifp->ctx->eloop, dhcp6_start1, ifp); -#ifdef ND6_ADVERTISE state = D6_STATE(ifp); if (state == NULL) return; + +#ifdef ND6_ADVERTISE TAILQ_FOREACH(ia, &state->addrs, next) { ipv6nd_advertise(ia); }