From c05612b9a702d0f49c379c92deb6daab55372aea Mon Sep 17 00:00:00 2001 From: ajs Date: Sat, 1 Oct 2005 16:36:54 +0000 Subject: 2005-10-01 Andrew J. Schorr * rt_netlink.c: (netlink_request) Use memset to clear structure before calling sendto (eliminates a valgrind error message about uninitialized data). --- zebra/rt_netlink.c | 1 + 1 file changed, 1 insertion(+) (limited to 'zebra/rt_netlink.c') diff --git a/zebra/rt_netlink.c b/zebra/rt_netlink.c index 62d166b2..254c3bd7 100644 --- a/zebra/rt_netlink.c +++ b/zebra/rt_netlink.c @@ -281,6 +281,7 @@ netlink_request (int family, int type, struct nlsock *nl) memset (&snl, 0, sizeof snl); snl.nl_family = AF_NETLINK; + memset (&req, 0, sizeof req); req.nlh.nlmsg_len = sizeof req; req.nlh.nlmsg_type = type; req.nlh.nlmsg_flags = NLM_F_ROOT | NLM_F_MATCH | NLM_F_REQUEST; -- cgit v1.2.1