All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrick McHardy <kaber@trash.net>
To: "David S. Miller" <davem@davemloft.net>
Cc: Netfilter Development Mailinglist <netfilter-devel@lists.netfilter.org>
Subject: [NETFILTER]: Clear padding area in __nfa_fill
Date: Sat, 23 Jul 2005 08:18:43 +0200	[thread overview]
Message-ID: <42E1E143.9000902@trash.net> (raw)

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

             reply	other threads:[~2005-07-23  6:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-23  6:18 Patrick McHardy [this message]
2005-07-25 23:40 ` [NETFILTER]: Clear padding area in __nfa_fill David S. Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=42E1E143.9000902@trash.net \
    --to=kaber@trash.net \
    --cc=davem@davemloft.net \
    --cc=netfilter-devel@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.