diff options
author | Jeremy Sowden <jeremy@azazel.net> | 2020-02-24 13:11:59 +0000 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2020-03-02 13:09:19 +0100 |
commit | 7b4848cfdbc9c74a2ade4f2227eb9d1f081d2988 (patch) | |
tree | 46f582b4497b46b522728438cf81d0bc299dd298 /tests/nft-expr_bitwise-test.c | |
parent | ec3622b075300727d8349d7db0b116a41981b703 (diff) |
tests: bitwise: fix error message.
In one case, the boolean test was reporting the wrong mismatched
attribute.
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/nft-expr_bitwise-test.c')
-rw-r--r-- | tests/nft-expr_bitwise-test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/nft-expr_bitwise-test.c b/tests/nft-expr_bitwise-test.c index 74a0e2a..f134728 100644 --- a/tests/nft-expr_bitwise-test.c +++ b/tests/nft-expr_bitwise-test.c @@ -44,7 +44,7 @@ static void cmp_nftnl_expr_bool(struct nftnl_expr *rule_a, print_err("bool", "Expr BITWISE_OP mismatches"); if (nftnl_expr_get_u16(rule_a, NFTNL_EXPR_BITWISE_LEN) != nftnl_expr_get_u16(rule_b, NFTNL_EXPR_BITWISE_LEN)) - print_err("bool", "Expr BITWISE_DREG mismatches"); + print_err("bool", "Expr BITWISE_LEN mismatches"); nftnl_expr_get(rule_a, NFTNL_EXPR_BITWISE_MASK, &maska); nftnl_expr_get(rule_b, NFTNL_EXPR_BITWISE_MASK, &maskb); if (maska != maskb) |