From 1b9e819cfebc0bca8d267ab66963f4a280aa561d Mon Sep 17 00:00:00 2001 From: "Aji, Srinivas" Date: Thu, 10 May 2007 16:38:48 -0700 Subject: [PATCH] RSTP testing - PATCH: Typo in libnetlink.c Typo in libnetlink.c Signed-off-by: Stephen Hemminger --- libnetlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libnetlink.c b/libnetlink.c index 2fb76b2..7752236 100644 --- a/libnetlink.c +++ b/libnetlink.c @@ -37,7 +37,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) { -- 2.47.2