]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix invalid deletion from pseudo interfaces.
authorRoy Marples <roy@marples.name>
Wed, 15 Oct 2014 19:05:17 +0000 (19:05 +0000)
committerRoy Marples <roy@marples.name>
Wed, 15 Oct 2014 19:05:17 +0000 (19:05 +0000)
ipv6.c

diff --git a/ipv6.c b/ipv6.c
index 2e062d9e06e8f10ee2daed0fa2e01e592915a3f7..564751cc490b5d6745e88e0f33c3ac8546ac161a 100644 (file)
--- a/ipv6.c
+++ b/ipv6.c
@@ -612,7 +612,7 @@ ipv6_addaddr(struct ipv6_addr *ap)
 
        /* Ensure no other interface has this address */
        TAILQ_FOREACH(ifp, ap->iface->ctx->ifaces, next) {
-               if (ifp == ap->iface)
+               if (ifp == ap->iface || strcmp(ifp->name, ap->iface->name) == 0)
                        continue;
                state = IPV6_STATE(ifp);
                if (state == NULL)