From b16621cafd599499fdbaa79236266d72a53106bb Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Thu, 10 May 2007 19:33:21 -0700 Subject: [PATCH] incorrect initialization Fix initialization in libnetlink. Signed-off-by: Stephen Hemminger --- lib/libnetlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libnetlink.c b/lib/libnetlink.c index 5c6a4dc4..555dd5ca 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) {