]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Don't try to delete non existant addresses
authorRoy Marples <roy@marples.name>
Sun, 9 Jun 2013 08:45:24 +0000 (08:45 +0000)
committerRoy Marples <roy@marples.name>
Sun, 9 Jun 2013 08:45:24 +0000 (08:45 +0000)
ipv6ns.c

index a8ec63d4e1d86d3d18895296506775236b3cb1a6..6c02e58f3411f752ae3d58f59d74167d4ba8ab43 100644 (file)
--- a/ipv6ns.c
+++ b/ipv6ns.c
@@ -393,7 +393,8 @@ ipv6ns_probeaddrs(struct ipv6_addrhead *addrs)
                                    ap->iface->name, ap->saddr);
                                i++;
                        }
-                       if (del_address6(ap) == -1 &&
+                       if (!IN6_IS_ADDR_UNSPECIFIED(&ap->addr) &&
+                           del_address6(ap) == -1 &&
                            errno != EADDRNOTAVAIL && errno != ENXIO)
                                syslog(LOG_ERR, "del_address6 %m");
                        if (ap->dadcallback)