diff options
author | Carlos Falgueras García <carlosfg@riseup.net> | 2016-08-10 14:07:05 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-08-10 14:14:32 +0200 |
commit | 4525b501a3c6b3b82422467f664e9430628dd770 (patch) | |
tree | 4c8fae892cfa48403931f10df7be28dab7d71b73 /src/expr | |
parent | 72d7fa0ebb58efc8a86796f334cfe4b3d38d81ca (diff) |
expr: Fix lookup builder
Deleted wrong braces that cause unwanted behaviour.
Signed-off-by: Carlos Falgueras García <carlosfg@riseup.net>
Diffstat (limited to 'src/expr')
-rw-r--r-- | src/expr/lookup.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/expr/lookup.c b/src/expr/lookup.c index 97478c2..639470d 100644 --- a/src/expr/lookup.c +++ b/src/expr/lookup.c @@ -122,12 +122,11 @@ nftnl_expr_lookup_build(struct nlmsghdr *nlh, const struct nftnl_expr *e) mnl_attr_put_u32(nlh, NFTA_LOOKUP_DREG, htonl(lookup->dreg)); if (e->flags & (1 << NFTNL_EXPR_LOOKUP_SET)) mnl_attr_put_strz(nlh, NFTA_LOOKUP_SET, lookup->set_name); - if (e->flags & (1 << NFTNL_EXPR_LOOKUP_SET_ID)) { + if (e->flags & (1 << NFTNL_EXPR_LOOKUP_SET_ID)) mnl_attr_put_u32(nlh, NFTA_LOOKUP_SET_ID, htonl(lookup->set_id)); if (e->flags & (1 << NFTNL_EXPR_LOOKUP_FLAGS)) mnl_attr_put_u32(nlh, NFTA_LOOKUP_FLAGS, htonl(lookup->flags)); - } } static int |