Skip to contentSkip to conversation

netlink: fix length value of concat data

PATCH New Patrick McHardy 1 participant 1 message Apr 14, 2014 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 netlink: fix length value of concat data

The length is measured in bytes, not bits.

---
 src/netlink.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/netlink.c +1 -1
index daac64c..0f6fb28 100644
@@ -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