]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Use braces to clarify.
authorRoy Marples <roy@marples.name>
Thu, 14 Sep 2017 11:59:31 +0000 (12:59 +0100)
committerRoy Marples <roy@marples.name>
Thu, 14 Sep 2017 11:59:31 +0000 (12:59 +0100)
src/dhcp6.c

index 2c88c6f696247228352c2d0faec7fc0db7d482b3..571bdc1bd61a9e33c5a19607b72018a9441c3b9f 100644 (file)
@@ -1349,10 +1349,11 @@ dhcp6_dadcallback(void *arg)
 
        wascompleted = (ia->flags & IPV6_AF_DADCOMPLETED);
        ia->flags |= IPV6_AF_DADCOMPLETED;
-       if (ia->flags & IPV6_AF_DUPLICATED)
+       if (ia->flags & IPV6_AF_DUPLICATED) {
                /* XXX FIXME
                 * We should decline the address */
                logwarnx("%s: DAD detected %s", ia->iface->name, ia->saddr);
+       }
 
        if (!wascompleted) {
                ifp = ia->iface;