diff options
| author | Roy Marples <roy@marples.name> | 2020-04-12 14:59:52 +0100 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2020-04-12 14:59:52 +0100 |
| commit | ffd67b2ae7f738e91b55909fb124dc9c339cbf72 (patch) | |
| tree | d64eadc8afe132289f7f9f9d91154822c1e908f5 | |
| parent | 24ecbec9a03d1492c7c0b34158b5d96c55add654 (diff) | |
| download | dhcpcd-ffd67b2ae7f738e91b55909fb124dc9c339cbf72.tar.xz | |
Fix build on old BSD.
| -rw-r--r-- | src/dhcp6.c | 5 |
1 files changed, 3 insertions, 2 deletions
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); } |
