]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
inet: clarify prior with comment
authorRoy Marples <roy@marples.name>
Tue, 1 Oct 2019 16:06:43 +0000 (17:06 +0100)
committerRoy Marples <roy@marples.name>
Tue, 1 Oct 2019 16:06:43 +0000 (17:06 +0100)
src/ipv4.c

index 544432ab44a3542681587cc7b5842d42a058fa7f..09b24266bb15090b7b87d9fdc0b26296e5d67114 100644 (file)
@@ -936,6 +936,8 @@ ipv4_handleifa(struct dhcpcd_ctx *ctx,
        }
 
        if (addr->s_addr != INADDR_ANY && addr->s_addr != INADDR_BROADCAST) {
+               /* If the handler deletes the address, the other might crash.
+                * So only call one handler based on the address type. */
                if (IN_LINKLOCAL(addr->s_addr))
 #ifdef IPV4LL
                        ipv4ll_handleifa(cmd, ia, pid);