]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix compile on BSD, [7e6b5d07d5]
authorRoy Marples <roy@marples.name>
Mon, 15 Feb 2016 09:44:58 +0000 (09:44 +0000)
committerRoy Marples <roy@marples.name>
Mon, 15 Feb 2016 09:44:58 +0000 (09:44 +0000)
ipv6nd.c

index 43df4090e024ae0a686b7226e6dfc11a6dd70690..3e80509e91761f3cf7e5452b6a03941ca340c88d 100644 (file)
--- a/ipv6nd.c
+++ b/ipv6nd.c
@@ -1007,7 +1007,8 @@ ipv6nd_handlera(struct dhcpcd_ctx *dctx, struct interface *ifp,
                                 * temporary address also exists then
                                 * extend the existing one rather than
                                 * create a new one */
-                               if (ipv6_iffindaddr(ifp, &ap->addr) &&
+                               if (ipv6_iffindaddr(ifp, &ap->addr,
+                                   IN6_IFF_NOTUSEABLE) &&
                                    ipv6_settemptime(ap, 0))
                                        new_ap = 0;
                                else