From: Roy Marples Date: Wed, 15 Oct 2014 19:05:17 +0000 (+0000) Subject: Fix invalid deletion from pseudo interfaces. X-Git-Tag: v6.5.1~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7159bb6dbf16a0bbc8eb52920608c18bb8c4b17f;p=thirdparty%2Fdhcpcd.git Fix invalid deletion from pseudo interfaces. --- diff --git a/ipv6.c b/ipv6.c index 2e062d9e..564751cc 100644 --- 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)