diff options
author | Dave Barach <dave@barachs.net> | 2016-10-12 17:32:39 -0400 |
---|---|---|
committer | Dave Barach <dave@barachs.net> | 2016-10-12 17:32:56 -0400 |
commit | 1946a12a52deddfb501d2bdf320ff280cb42a076 (patch) | |
tree | 0301cf76c49f81ed4a58e26587f24bddfdac898b /vnet/vnet/classify/flow_classify_node.c | |
parent | 1e66d5c54b81b8d6290153f1b3c2b021c4b62fad (diff) |
Fix coverity warnings, VPP-486
Change-Id: I7a14d9a28514cdb49f65fab1b120b53239fed7e3
Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'vnet/vnet/classify/flow_classify_node.c')
-rw-r--r-- | vnet/vnet/classify/flow_classify_node.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vnet/vnet/classify/flow_classify_node.c b/vnet/vnet/classify/flow_classify_node.c index aa3bce5467a..5c9e0820a26 100644 --- a/vnet/vnet/classify/flow_classify_node.c +++ b/vnet/vnet/classify/flow_classify_node.c @@ -267,7 +267,7 @@ flow_classify_inline (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 */ |