: Clear padding area in __nfa_fill
Subsystems (2)
[NETFILTER]: Clear padding area in __nfa_fill
Signed-off-by Patrick McHardy <[email protected]>
---
commit 7c94d9d3651cf88afe53123c313dd6714856bbd2
tree 1c7baec1d144ce7801208de9522aa64e7f645152
parent a6b1cad65cc50bf64093ed442004e0851d41c8dd
author Patrick McHardy <[email protected]> Sat, 23 Jul 2005 08:18:08 +0200 committer Patrick McHardy <[email protected]> Sat, 23 Jul 2005 08:18:08 +0200
net/netfilter/nfnetlink.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
net/netfilter/nfnetlink.c +1 -0
@@ -121,6 +121,7 @@ void __nfa_fill(struct sk_buff *skb, int nfa->nfa_type = attrtype; nfa->nfa_len = size;memcpy (NFA_DATA (nfa), data, attrlen); +memset (NFA_DATA (nfa) + attrlen,0 ,NFA_ALIGN (size) - size); }int nfattr_parse (struct nfattr *tb[],int maxattr,struct nfattr *nfa,int len)
From: Patrick McHardy <[email protected]>
Date: Sat, 23 Jul 2005 08:18:43 +0200
Quoted 3 lines
[NETFILTER]: Clear padding area in
__nfa_fillSigned-off-by Patrick McHardy <[email protected]>
Applied to net-2.6.14