summaryrefslogtreecommitdiff
path: root/zebra
diff options
context:
space:
mode:
Diffstat (limited to 'zebra')
-rw-r--r--zebra/ChangeLog5
-rw-r--r--zebra/rt_netlink.c1
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;