diff options
author | Dave Barach <dave@barachs.net> | 2016-08-10 16:56:16 -0400 |
---|---|---|
committer | Dave Barach <dave@barachs.net> | 2016-08-10 16:56:32 -0400 |
commit | dd522cbaf421de7b34887fb8c33981c4ebca9201 (patch) | |
tree | 79dab4a6a205d683b77e21f92514923c952195e0 /vnet/vnet/l2 | |
parent | 839fe3e6d65dbbd7cd102a22a7259d2556b7410a (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.c | 2 |
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 */ |