summaryrefslogtreecommitdiffstats
path: root/vnet/vnet/l2
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2016-08-10 16:56:16 -0400
committerDave Barach <dave@barachs.net>2016-08-10 16:56:32 -0400
commitdd522cbaf421de7b34887fb8c33981c4ebca9201 (patch)
tree79dab4a6a205d683b77e21f92514923c952195e0 /vnet/vnet/l2
parent839fe3e6d65dbbd7cd102a22a7259d2556b7410a (diff)
VPP-189 Fix coverity warnings
Change-Id: Iea6d338e60a95f7f30c10c2e751d4827e816f700 Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'vnet/vnet/l2')
-rw-r--r--vnet/vnet/l2/l2_input_acl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vnet/vnet/l2/l2_input_acl.c b/vnet/vnet/l2/l2_input_acl.c
index d3038e8df1e..f8e77d7e58f 100644
--- a/vnet/vnet/l2/l2_input_acl.c
+++ b/vnet/vnet/l2/l2_input_acl.c
@@ -329,7 +329,7 @@ l2_inacl_node_fn (vlib_main_t * vm,
t->sw_if_index = vnet_buffer(b0)->sw_if_index[VLIB_RX];
t->next_index = next0;
t->table_index = t0 ? t0 - vcm->tables : ~0;
- t->offset = e0 ? vnet_classify_get_offset (t0, e0): ~0;
+ t->offset = (t0 && e0) ? vnet_classify_get_offset (t0, e0): ~0;
}
/* verify speculative enqueue, maybe switch current next frame */