From: Thomas Graf Date: Sun, 19 Jun 2005 05:52:09 +0000 (-0700) Subject: [NEIGH]: Fix use of uninitialized variable when trimming in neightbl_fill_parms X-Git-Tag: v2.6.13-rc1~90^2~583^2~31 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e386c6eb431ca2e435d0202ad6997f3d2ccab2ce;p=linux-2.6 [NEIGH]: Fix use of uninitialized variable when trimming in neightbl_fill_parms Signed-off-by: Thomas Graf Signed-off-by: David S. Miller --- diff --git a/net/core/neighbour.c b/net/core/neighbour.c index d1f8f7847f..2296a145fb 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);