mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
Update.
2003-11-04 Ulrich Drepper <drepper@redhat.com> * sysdeps/unix/sysv/linux/ifaddrs.c: Make sure it's the kernel who sends the netlink data. * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
This commit is contained in:
@ -186,7 +186,8 @@ netlink_receive (struct netlink_handle *h)
|
||||
NLMSG_OK (nlmh, (size_t) read_len);
|
||||
nlmh = (struct nlmsghdr *) NLMSG_NEXT (nlmh, read_len))
|
||||
{
|
||||
if ((pid_t) nlmh->nlmsg_pid != h->pid || nlmh->nlmsg_seq != h->seq)
|
||||
if (nladdr.nl_pid != 0 || (pid_t) nlmh->nlmsg_pid != h->pid
|
||||
|| nlmh->nlmsg_seq != h->seq)
|
||||
continue;
|
||||
|
||||
if (nlmh->nlmsg_type == NLMSG_DONE)
|
||||
|
Reference in New Issue
Block a user