summaryrefslogtreecommitdiffstats
path: root/src/expr/match.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2014-06-17 22:05:20 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2014-06-17 22:05:20 +0200
commit89f7d03733ab19fe3a92a32d14c04d0c44ddeb97 (patch)
tree99a93992be9a1f777c2a03fed21028a7a3cb16ba /src/expr/match.c
parent44f00c23a9935d7d2912a2d3588b27bac8d6dc9a (diff)
expr: remove alignment through XT_ALIGN in match and target
The info area that this gets via the setter should be already aligned. The caller has to care of this. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/expr/match.c')
-rw-r--r--src/expr/match.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/expr/match.c b/src/expr/match.c
index a65d3e5..a78bd69 100644
--- a/src/expr/match.c
+++ b/src/expr/match.c
@@ -124,7 +124,7 @@ nft_rule_expr_match_build(struct nlmsghdr *nlh, struct nft_rule_expr *e)
if (e->flags & (1 << NFT_EXPR_MT_REV))
mnl_attr_put_u32(nlh, NFTA_MATCH_REV, htonl(mt->rev));
if (e->flags & (1 << NFT_EXPR_MT_INFO))
- mnl_attr_put(nlh, NFTA_MATCH_INFO, XT_ALIGN(mt->data_len), mt->data);
+ mnl_attr_put(nlh, NFTA_MATCH_INFO, mt->data_len, mt->data);
}
static int nft_rule_expr_match_parse(struct nft_rule_expr *e, struct nlattr *attr)