commit | b3563c4fbff906991a1b4ef4609f99cca2a0de6a | [log] [tgz] |
---|---|---|
author | Patrick McHardy <kaber@trash.net> | Tue Jun 28 12:54:43 2005 -0700 |
committer | David S. Miller <davem@davemloft.net> | Tue Jun 28 12:54:43 2005 -0700 |
tree | e5c0e4cb4a0a48ebeeb8b1515128c115c5aa528c | |
parent | 4095ebf1e641b0f37ee1cd04c903bb85cf4ed25b [diff] [blame] |
[NETLINK]: Clear padding in netlink messages Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
diff --git a/include/linux/netlink.h b/include/linux/netlink.h index 3029cad..27e4d16 100644 --- a/include/linux/netlink.h +++ b/include/linux/netlink.h
@@ -168,6 +168,7 @@ nlh->nlmsg_flags = flags; nlh->nlmsg_pid = pid; nlh->nlmsg_seq = seq; + memset(NLMSG_DATA(nlh) + len, 0, NLMSG_ALIGN(size) - size); return nlh; }