]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
CID 1102809: Fix uninitialised variable.
authorRoy Marples <roy@marples.name>
Thu, 14 Nov 2013 10:20:32 +0000 (10:20 +0000)
committerRoy Marples <roy@marples.name>
Thu, 14 Nov 2013 10:20:32 +0000 (10:20 +0000)
Thanks to Christos Zoulas.

ipv6nd.c

index c8c3ed28645a15809cf2caf6ba744759f6b10674..b066112b371b3c19d66c196b906304cf34d160cc 100644 (file)
--- a/ipv6nd.c
+++ b/ipv6nd.c
@@ -570,6 +570,7 @@ ipv6nd_dadcallback(void *arg)
                        if (rap->iface != ifp)
                                continue;
                        wascompleted = 1;
+                       found = 0;
                        TAILQ_FOREACH(rapap, &rap->addrs, next) {
                                if (rapap->flags & IPV6_AF_AUTOCONF &&
                                    (rapap->flags & IPV6_AF_DADCOMPLETED) == 0)