]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix comparison
authorRoy Marples <roy@marples.name>
Wed, 4 Sep 2013 00:32:38 +0000 (00:32 +0000)
committerRoy Marples <roy@marples.name>
Wed, 4 Sep 2013 00:32:38 +0000 (00:32 +0000)
ipv6nd.c

index 79a494dab49f78b12e7e19553b5184052492dadd..bfca57958639b2f712434a9003e486c0cd57e79b 100644 (file)
--- a/ipv6nd.c
+++ b/ipv6nd.c
@@ -394,7 +394,7 @@ ipv6nd_addrexists(const struct ipv6_addr *addr)
                                    (IPV6_AF_ADDED | IPV6_AF_DADCOMPLETED)) ==
                                    (IPV6_AF_ADDED | IPV6_AF_DADCOMPLETED))
                                        return 1;
-                       } else if (IN6_ARE_ADDR_EQUAL(&ap->addr, addr))
+                       } else if (IN6_ARE_ADDR_EQUAL(&ap->addr, &addr->addr))
                                return 1;
                }
        }