From: Stephen Hemminger Date: Fri, 11 May 2007 02:33:21 +0000 (-0700) Subject: incorrect initialization X-Git-Tag: v2.6.23-071016~57 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b16621cafd599499fdbaa79236266d72a53106bb;p=thirdparty%2Fiproute2.git incorrect initialization Fix initialization in libnetlink. Signed-off-by: Stephen Hemminger --- diff --git a/lib/libnetlink.c b/lib/libnetlink.c index 5c6a4dc4b..555dd5cad 100644 --- a/lib/libnetlink.c +++ b/lib/libnetlink.c @@ -40,7 +40,7 @@ int rtnl_open_byproto(struct rtnl_handle *rth, unsigned subscriptions, int sndbuf = 32768; int rcvbuf = 32768; - memset(rth, 0, sizeof(rth)); + memset(rth, 0, sizeof(*rth)); rth->fd = socket(AF_NETLINK, SOCK_RAW, protocol); if (rth->fd < 0) {