From: Roy Marples Date: Tue, 1 Oct 2019 16:06:43 +0000 (+0100) Subject: inet: clarify prior with comment X-Git-Tag: v8.1.0~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f648e7c6bfe2e48aa7f9c150850e43c9361d2949;p=thirdparty%2Fdhcpcd.git inet: clarify prior with comment --- 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);