]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
BSD: Work around another coverity false positive.
authorRoy Marples <roy@marples.name>
Tue, 23 Jul 2019 16:20:35 +0000 (17:20 +0100)
committerRoy Marples <roy@marples.name>
Tue, 23 Jul 2019 16:20:35 +0000 (17:20 +0100)
src/if-bsd.c

index 309e6fec8f0c8288ffe79520c32a296b8288565c..911808a2967e6ef520433c740a2c1b5aeec8c8a3 100644 (file)
@@ -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);
 }