Revert "netlink: test for all flags of the NLM_F_DUMP composite"
This reverts commit 0ab03c2b14
.
It breaks several things including the avahi daemon.
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -2189,7 +2189,7 @@ static int xfrm_user_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh)
|
||||
|
||||
if ((type == (XFRM_MSG_GETSA - XFRM_MSG_BASE) ||
|
||||
type == (XFRM_MSG_GETPOLICY - XFRM_MSG_BASE)) &&
|
||||
(nlh->nlmsg_flags & NLM_F_DUMP) == NLM_F_DUMP) {
|
||||
(nlh->nlmsg_flags & NLM_F_DUMP)) {
|
||||
if (link->dump == NULL)
|
||||
return -EINVAL;
|
||||
|
||||
|
Reference in New Issue
Block a user