diff options
Diffstat (limited to 'net/tipc/netlink_compat.c')
-rw-r--r-- | net/tipc/netlink_compat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/tipc/netlink_compat.c b/net/tipc/netlink_compat.c index 2c016fdefe97..d7d050f44fc1 100644 --- a/net/tipc/netlink_compat.c +++ b/net/tipc/netlink_compat.c | |||
@@ -1104,8 +1104,8 @@ static int tipc_nl_compat_recv(struct sk_buff *skb, struct genl_info *info) | |||
1104 | req_nlh = (struct nlmsghdr *)skb->data; | 1104 | req_nlh = (struct nlmsghdr *)skb->data; |
1105 | msg.req = nlmsg_data(req_nlh) + GENL_HDRLEN + TIPC_GENL_HDRLEN; | 1105 | msg.req = nlmsg_data(req_nlh) + GENL_HDRLEN + TIPC_GENL_HDRLEN; |
1106 | msg.cmd = req_userhdr->cmd; | 1106 | msg.cmd = req_userhdr->cmd; |
1107 | msg.dst_sk = info->dst_sk; | ||
1108 | msg.net = genl_info_net(info); | 1107 | msg.net = genl_info_net(info); |
1108 | msg.dst_sk = skb->sk; | ||
1109 | 1109 | ||
1110 | if ((msg.cmd & 0xC000) && (!netlink_net_capable(skb, CAP_NET_ADMIN))) { | 1110 | if ((msg.cmd & 0xC000) && (!netlink_net_capable(skb, CAP_NET_ADMIN))) { |
1111 | msg.rep = tipc_get_err_tlv(TIPC_CFG_NOT_NET_ADMIN); | 1111 | msg.rep = tipc_get_err_tlv(TIPC_CFG_NOT_NET_ADMIN); |