aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/classify/trace_classify.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet/classify/trace_classify.h')
-rw-r--r--src/vnet/classify/trace_classify.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vnet/classify/trace_classify.h b/src/vnet/classify/trace_classify.h
index fea4ddee7e7..03421210d03 100644
--- a/src/vnet/classify/trace_classify.h
+++ b/src/vnet/classify/trace_classify.h
@@ -45,6 +45,9 @@ vnet_is_packet_traced_inline (vlib_buffer_t * b,
if (func != 0)
return -1;
+ if (classify_table_index == ~0)
+ return -1;
+
/* This will happen... */
if (pool_is_free_index (vcm->tables, classify_table_index))
return -1;