aboutsummaryrefslogtreecommitdiff
path: root/networking/libiproute/libnetlink.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/libiproute/libnetlink.c')
-rw-r--r--networking/libiproute/libnetlink.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/networking/libiproute/libnetlink.c b/networking/libiproute/libnetlink.c
index 861daef86..5545be8fe 100644
--- a/networking/libiproute/libnetlink.c
+++ b/networking/libiproute/libnetlink.c
@@ -161,7 +161,8 @@ int rtnl_dump_filter(struct rtnl_handle *rth,
161 while (NLMSG_OK(h, status)) { 161 while (NLMSG_OK(h, status)) {
162 int err; 162 int err;
163 163
164 if (h->nlmsg_pid != rth->local.nl_pid || 164 if (nladdr.nl_pid != 0 ||
165 h->nlmsg_pid != rth->local.nl_pid ||
165 h->nlmsg_seq != rth->dump) { 166 h->nlmsg_seq != rth->dump) {
166 if (junk) { 167 if (junk) {
167 err = junk(&nladdr, h, arg2); 168 err = junk(&nladdr, h, arg2);
@@ -270,7 +271,8 @@ int rtnl_talk(struct rtnl_handle *rtnl, struct nlmsghdr *n, pid_t peer,
270 bb_error_msg_and_die("!!!malformed message: len=%d", len); 271 bb_error_msg_and_die("!!!malformed message: len=%d", len);
271 } 272 }
272 273
273 if (h->nlmsg_pid != rtnl->local.nl_pid || 274 if (nladdr.nl_pid != peer ||
275 h->nlmsg_pid != rtnl->local.nl_pid ||
274 h->nlmsg_seq != seq) { 276 h->nlmsg_seq != seq) {
275 if (junk) { 277 if (junk) {
276 l_err = junk(&nladdr, h, jarg); 278 l_err = junk(&nladdr, h, jarg);