提交 e386c6eb 编写于 作者: T Thomas Graf 提交者: David S. Miller

[NEIGH]: Fix use of uninitialized variable when trimming in neightbl_fill_parms

Signed-off-by: NThomas Graf <tgraf@suug.ch>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 4b6ea82d
......@@ -1555,7 +1555,9 @@ int neigh_add(struct sk_buff *skb, struct nlmsghdr *nlh, void *arg)
static int neightbl_fill_parms(struct sk_buff *skb, struct neigh_parms *parms)
{
struct rtattr *nest = RTA_NEST(skb, NDTA_PARMS);
struct rtattr *nest = NULL;
nest = RTA_NEST(skb, NDTA_PARMS);
if (parms->dev)
RTA_PUT_U32(skb, NDTPA_IFINDEX, parms->dev->ifindex);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册