diff mbox

[nftables-kernel,2/7] netfilter: nf_tables: Use byteorder operands length relevantly

Message ID 1381754816-28472-3-git-send-email-tomasz.bursztyka@linux.intel.com
State Accepted
Headers show

Commit Message

Tomasz Bursztyka Oct. 14, 2013, 12:46 p.m. UTC
Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
---
 net/netfilter/nft_byteorder.c | 2 --
 1 file changed, 2 deletions(-)
diff mbox

Patch

diff --git a/net/netfilter/nft_byteorder.c b/net/netfilter/nft_byteorder.c
index d213b98..c39ed8d 100644
--- a/net/netfilter/nft_byteorder.c
+++ b/net/netfilter/nft_byteorder.c
@@ -110,8 +110,6 @@  static int nft_byteorder_init(const struct nft_ctx *ctx,
 	}
 
 	priv->len = ntohl(nla_get_be32(tb[NFTA_BYTEORDER_LEN]));
-	// FIXME: something is corrupting the attribute value
-	priv->len = 4;
 	if (priv->len == 0 || priv->len > FIELD_SIZEOF(struct nft_data, data))
 		return -EINVAL;