]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix a bogus static analyzer bug.
authorRoy Marples <roy@marples.name>
Thu, 7 Apr 2016 20:45:20 +0000 (20:45 +0000)
committerRoy Marples <roy@marples.name>
Thu, 7 Apr 2016 20:45:20 +0000 (20:45 +0000)
if-linux.c

index a8dbb2d2a0d4b971ad92ade8f34bb15add33be0d..3d2603991058d32ed0b6d77b23e9abb554f48362 100644 (file)
@@ -367,6 +367,7 @@ get_netlink(struct dhcpcd_ctx *ctx, struct interface *ifp, int fd, int flags,
                                goto eexit;
                        buf = nbuf;
                }
+               nladdr.nl_pid = 0; /* XXX clang static analyzer bug? */
                nladdr_len = sizeof(nladdr);
                bytes = recvfrom(fd, buf, buflen, flags,
                    (struct sockaddr *)&nladdr, &nladdr_len);