From: Roy Marples Date: Tue, 23 Jul 2019 16:20:35 +0000 (+0100) Subject: BSD: Work around another coverity false positive. X-Git-Tag: v8.0.0~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c55849d0f3c2c8cc4742e85df5d0b310b58f9726;p=thirdparty%2Fdhcpcd.git BSD: Work around another coverity false positive. --- diff --git a/src/if-bsd.c b/src/if-bsd.c index 309e6fec..911808a2 100644 --- a/src/if-bsd.c +++ b/src/if-bsd.c @@ -1335,6 +1335,9 @@ if_handlelink(struct dhcpcd_ctx *ctx) errno = EINVAL; return -1; } + /* We generally treat rtm.hdr has an array so we can easily + * access the following data. */ + /* coverity[callee_ptr_arith] */ return if_dispatch(ctx, &rtm.hdr); }