summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2015-08-12 11:27:35 +0200
committerFlorian Westphal <fw@strlen.de>2015-09-18 00:06:53 +0200
commit5174b6850291b67769ebd018e5c90837897969c2 (patch)
tree9120eb135d480af93cbc9cf6a3ba2b062fc5ebb8 /src
parentf7d5590688a676a61855a61a513dddb7251364fa (diff)
vlan: make != tests work
Diffstat (limited to 'src')
-rw-r--r--src/netlink_delinearize.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/netlink_delinearize.c b/src/netlink_delinearize.c
index 16e3aaaf..dc6338c2 100644
--- a/src/netlink_delinearize.c
+++ b/src/netlink_delinearize.c
@@ -1083,6 +1083,7 @@ static void relational_binop_postprocess(struct rule_pp_ctx *ctx, struct expr *e
struct expr *binop = expr->left, *value = expr->right;
if (binop->op == OP_AND && expr->op == OP_NEQ &&
+ value->dtype->basetype &&
value->dtype->basetype->type == TYPE_BITMASK &&
!mpz_cmp_ui(value->value, 0)) {
/* Flag comparison: data & flags != 0