* [PATCH] netlink: fix length value of concat data
@ 2014-04-14 6:07 Patrick McHardy
0 siblings, 0 replies; only message in thread
From: Patrick McHardy @ 2014-04-14 6:07 UTC (permalink / raw)
To: pablo; +Cc: netfilter-devel
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-04-14 6:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-14 6:07 [PATCH] netlink: fix length value of concat data Patrick McHardy
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).