diff options
author | Patrick McHardy <kaber@trash.net> | 2005-06-28 12:56:45 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-06-28 12:56:45 -0700 |
commit | 8a47077a0b5aa2649751c46e7a27884e6686ccbf (patch) | |
tree | 60e7c40a375057a31b5340226cd446ffa199413c /net/ipv6 | |
parent | 9ef1d4c7c7aca1cd436612b6ca785b726ffb8ed8 (diff) | |
download | talos-op-linux-8a47077a0b5aa2649751c46e7a27884e6686ccbf.tar.gz talos-op-linux-8a47077a0b5aa2649751c46e7a27884e6686ccbf.zip |
[NETLINK]: Missing padding fields in dumped structures
Plug holes with padding fields and initialized them to zero.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r-- | net/ipv6/addrconf.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index 8140bed78a26..1b2902d8eb98 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c @@ -3031,9 +3031,12 @@ static int inet6_fill_prefix(struct sk_buff *skb, struct inet6_dev *idev, nlh = NLMSG_NEW(skb, pid, seq, event, sizeof(*pmsg), flags); pmsg = NLMSG_DATA(nlh); pmsg->prefix_family = AF_INET6; + pmsg->prefix_pad1 = 0; + pmsg->prefix_pad2 = 0; pmsg->prefix_ifindex = idev->dev->ifindex; pmsg->prefix_len = pinfo->prefix_len; pmsg->prefix_type = pinfo->type; + pmsg->prefix_pad3 = 0; pmsg->prefix_flags = 0; if (pinfo->onlink) |