From: Patrick McHardy <kaber@trash.net>
To: pablo@netfilter.org
Cc: netfilter-devel@vger.kernel.org
Subject: [PATCH] netlink: fix length value of concat data
Date: Mon, 14 Apr 2014 08:07:33 +0200 [thread overview]
Message-ID: <1397455653-3619-1-git-send-email-kaber@trash.net> (raw)
The length is measured in bytes, not bits.
Signed-off-by: Patrick McHardy <kaber@trash.net>
---
src/netlink.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/netlink.c b/src/netlink.c
index daac64c..0f6fb28 100644
--- a/src/netlink.c
+++ b/src/netlink.c
@@ -230,7 +230,7 @@ static void netlink_gen_concat_data(const struct expr *expr,
}
memcpy(nld->value, data, len / BITS_PER_BYTE);
- nld->len = len;
+ nld->len = len / BITS_PER_BYTE;
}
}
--
1.9.0
reply other threads:[~2014-04-14 6:07 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1397455653-3619-1-git-send-email-kaber@trash.net \
--to=kaber@trash.net \
--cc=netfilter-devel@vger.kernel.org \
--cc=pablo@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).