Skip to contentSkip to conversation

: Clear padding area in __nfa_fill

NETFILTER Applied Patrick McHardy 2 participants 2 messages Jul 23, 2005 – Jul 25, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

[NETFILTER]: Clear padding area in __nfa_fill

---
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)