diff options
author | Thomas Graf <tgraf@suug.ch> | 2005-06-19 07:52:09 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-06-19 07:52:09 +0200 |
commit | e386c6eb431ca2e435d0202ad6997f3d2ccab2ce (patch) | |
tree | f8d3145d017b3918f632595b2e14a5547956597c | |
parent | [NETLINK]: Kill bogus NLMSG_SET_MULTIPART uses. (diff) | |
download | linux-e386c6eb431ca2e435d0202ad6997f3d2ccab2ce.tar.xz linux-e386c6eb431ca2e435d0202ad6997f3d2ccab2ce.zip |
[NEIGH]: Fix use of uninitialized variable when trimming in neightbl_fill_parms
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/core/neighbour.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/core/neighbour.c b/net/core/neighbour.c index d1f8f7847f7c..2296a145fb78 100644 --- a/net/core/neighbour.c +++ b/net/core/neighbour.c @@ -1555,7 +1555,9 @@ out: 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); |