Mercurial > hg > dhcpcd
changeset 5140:b9d3f58dd06e draft
Fix build on old BSD.
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Sun, 12 Apr 2020 14:59:52 +0100 |
| parents | ff170c25b210 |
| children | 7a4dcea0dfe0 |
| files | src/dhcp6.c |
| diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/dhcp6.c Thu Apr 02 13:10:09 2020 +0100 +++ b/src/dhcp6.c Sun Apr 12 14:59:52 2020 +0100 @@ -3943,16 +3943,17 @@ void dhcp6_abort(struct interface *ifp) { + struct dhcp6_state *state; #ifdef ND6_ADVERTISE - struct dhcp6_state *state; 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); }
