]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix another analyzer error.
authorRoy Marples <roy@marples.name>
Fri, 15 May 2015 15:10:26 +0000 (15:10 +0000)
committerRoy Marples <roy@marples.name>
Fri, 15 May 2015 15:10:26 +0000 (15:10 +0000)
if-linux.c

index 9871d6b4b1daade8e6c7c7d7cc3e03f1cb42c9a7..2acdf040aa5d03a40cd37a708b399c210d9b572c 100644 (file)
@@ -351,6 +351,7 @@ get_netlink(struct dhcpcd_ctx *ctx, struct interface *ifp, int fd, int flags,
                                goto eexit;
                        buf = nbuf;
                }
+               nladdr.nl_pid = 0;
                nladdr_len = sizeof(nladdr);
                bytes = recvfrom(fd, buf, buflen, flags,
                    (struct sockaddr *)&nladdr, &nladdr_len);