[NETLINK]: Ignore control messages directly in netlink_run_queue()
Changes netlink_rcv_skb() to skip netlink controll messages and don't pass them on to the message handler. Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
d35b685640
commit
45e7ae7f71
@@ -1860,10 +1860,6 @@ static int xfrm_user_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh, int *err
|
||||
|
||||
type = nlh->nlmsg_type;
|
||||
|
||||
/* A control message: ignore them */
|
||||
if (type < XFRM_MSG_BASE)
|
||||
return 0;
|
||||
|
||||
/* Unknown message: reply with EINVAL */
|
||||
if (type > XFRM_MSG_MAX)
|
||||
goto err_einval;
|
||||
|
Reference in New Issue
Block a user