netlink: fix length value of concat data
PATCH 1/1 netlink: fix length value of concat data
The length is measured in bytes, not bits.
Signed-off-by Patrick McHardy <[email protected]>
--- src/netlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
src/netlink.c +1 -1
@@ -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 ; } }
Signature · 1 line
1.9.0