diff options
| author | Roy Marples <roy@marples.name> | 2020-02-06 12:58:43 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2020-02-06 12:58:43 +0000 |
| commit | 22c113b4b658cec21fe2ac5fb8039900b24420ad (patch) | |
| tree | 4e41db49d4000f6316dfbd7c9f9bb54cf0376fea /src/ipv6.c | |
| parent | 4a775363802338d4608163fae752557531955a6e (diff) | |
| download | dhcpcd-22c113b4b658cec21fe2ac5fb8039900b24420ad.tar.xz | |
DHCP6: Clean up old lease when we fail to confirm/rebind, etc
Also removed the TIMEOUT states which makes things easier to read.
Diffstat (limited to 'src/ipv6.c')
| -rw-r--r-- | src/ipv6.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1528,9 +1528,10 @@ ipv6_newaddr(struct interface *ifp, const struct in6_addr *addr, /* If adding a new DHCP / RA derived address, check current flags * from an existing address. */ ia = ipv6_iffindaddr(ifp, addr, 0); - if (ia != NULL) + if (ia != NULL) { addr_flags = ia->addr_flags; - else + flags |= IPV6_AF_ADDED; + } else addr_flags = IN6_IFF_TENTATIVE; ia = calloc(1, sizeof(*ia)); |
