All of lore.kernel.org
 help / color / mirror / Atom feed
* [NETFILTER]: Clear padding area in __nfa_fill
@ 2005-07-23  6:18 Patrick McHardy
  2005-07-25 23:40 ` David S. Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Patrick McHardy @ 2005-07-23  6:18 UTC (permalink / raw)
  To: David S. Miller; +Cc: Netfilter Development Mailinglist

[-- Attachment #1: x --]
[-- Type: text/plain, Size: 912 bytes --]

[NETFILTER]: Clear padding area in __nfa_fill

Signed-off-by: Patrick McHardy <kaber@trash.net>

---
commit 7c94d9d3651cf88afe53123c313dd6714856bbd2
tree 1c7baec1d144ce7801208de9522aa64e7f645152
parent a6b1cad65cc50bf64093ed442004e0851d41c8dd
author Patrick McHardy <kaber@trash.net> Sat, 23 Jul 2005 08:18:08 +0200
committer Patrick McHardy <kaber@trash.net> Sat, 23 Jul 2005 08:18:08 +0200

 net/netfilter/nfnetlink.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/net/netfilter/nfnetlink.c b/net/netfilter/nfnetlink.c
--- a/net/netfilter/nfnetlink.c
+++ b/net/netfilter/nfnetlink.c
@@ -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)

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-07-25 23:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-23  6:18 [NETFILTER]: Clear padding area in __nfa_fill Patrick McHardy
2005-07-25 23:40 ` David S. Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.