diff options
author | ajs <ajs> | 2005-10-01 16:36:54 +0000 |
---|---|---|
committer | ajs <ajs> | 2005-10-01 16:36:54 +0000 |
commit | c05612b9a702d0f49c379c92deb6daab55372aea (patch) | |
tree | 3e99659456e05f2d3d428c430c883f49ad7fdd28 | |
parent | 13fb40ac99823c405137a42d7666785fd7ac641a (diff) |
2005-10-01 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
* rt_netlink.c: (netlink_request) Use memset to clear structure
before calling sendto (eliminates a valgrind error message about
uninitialized data).
-rw-r--r-- | zebra/ChangeLog | 5 | ||||
-rw-r--r-- | zebra/rt_netlink.c | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/zebra/ChangeLog b/zebra/ChangeLog index c3c88e85..9f4bd183 100644 --- a/zebra/ChangeLog +++ b/zebra/ChangeLog @@ -1,3 +1,8 @@ +2005-10-01 Andrew J. Schorr <ajschorr@alumni.princeton.edu> + + * rt_netlink.c: (netlink_request) Use memset to clear structure + before calling sendto (eliminates a valgrind error message about + uninitialized data). 2005-09-28 Alain Ritoux <alain.ritoux@6wind.com> 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; |