From: Aji, Srinivas Date: Thu, 10 May 2007 23:38:48 +0000 (-0700) Subject: RSTP testing - PATCH: Typo in libnetlink.c X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1b9e819cfebc0bca8d267ab66963f4a280aa561d;p=people%2Fms%2Frstp.git RSTP testing - PATCH: Typo in libnetlink.c Typo in libnetlink.c Signed-off-by: Stephen Hemminger --- 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) {