]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Seems we need braces here.
authorRoy Marples <roy@marples.name>
Mon, 6 Aug 2012 20:31:33 +0000 (20:31 +0000)
committerRoy Marples <roy@marples.name>
Mon, 6 Aug 2012 20:31:33 +0000 (20:31 +0000)
ipv6.c

diff --git a/ipv6.c b/ipv6.c
index 1367657e213d7ed80e9956ea14f66f1abaed775a..8a0ae0483a19d313d3ffaf619aff6d1141efe146 100644 (file)
--- a/ipv6.c
+++ b/ipv6.c
@@ -367,12 +367,13 @@ ipv6_build_routes(void)
        TAILQ_FOREACH(rap, &ipv6_routers, next) {
                if (rap->expired)
                        continue;
-               if (options & DHCPCD_IPV6RA_OWN)
+               if (options & DHCPCD_IPV6RA_OWN) {
                        TAILQ_FOREACH(addr, &rap->addrs, next) {
                                rt = make_prefix(rap, addr);
                                if (rt)
                                        TAILQ_INSERT_TAIL(&dnr, rt, next);
                        }
+               }
                rt = make_router(rap);
                if (rt)
                        TAILQ_INSERT_TAIL(&dnr, rt, next);