[PATCH] netlink: fix length value of concat data

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The length is measured in bytes, not bits.

Signed-off-by: Patrick McHardy <kaber@xxxxxxxxx>
---
 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

--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux