From bab74af5ce606255cf0a8cb038275f9713fa49d1 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Tue, 1 Oct 2019 17:06:43 +0100 Subject: [PATCH] inet: clarify prior with comment --- src/ipv4.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ipv4.c b/src/ipv4.c index 544432ab..09b24266 100644 --- a/src/ipv4.c +++ b/src/ipv4.c @@ -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); -- 2.47.2