From be2153ef630f63884af1b3b1bc1b507e8582f82a Mon Sep 17 00:00:00 2001 From: Arnaldo Carvalho de Melo Date: Thu, 30 Oct 2003 03:43:27 -0800 Subject: [PATCH] [IPX]: Missing memset()'s in route and interface creation. --- net/appletalk/ddp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/appletalk/ddp.c b/net/appletalk/ddp.c index 48497a95ff654..f7f9b36add36f 100644 --- a/net/appletalk/ddp.c +++ b/net/appletalk/ddp.c @@ -249,6 +249,7 @@ static struct atalk_iface *atif_add_device(struct net_device *dev, if (!iface) goto out; + memset(iface, 0, sizeof(*iface)); dev_hold(dev); iface->dev = dev; dev->atalk_ptr = iface; @@ -580,6 +581,7 @@ static int atrtr_create(struct rtentry *r, struct net_device *devhint) retval = -ENOBUFS; if (!rt) goto out; + memset(rt, 0, sizeof(*rt)); rt->next = atalk_routes; atalk_routes = rt; -- 2.53.0