classify: fix "show classify filter" debug CLI
Null pointer bug, memory leak. D'oh! Type: fix Signed-off-by: Dave Barach <dave@barachs.net> Change-Id: Ic2865757ed9cbb7f48d23c7c30b64299eb5f6674 (cherry picked from commit 104112f2d412a4576b5e0d3bbb20665d2b5bd615)
This commit is contained in:
parent
6255d30069
commit
05c2f5b73e
@ -2067,7 +2067,6 @@ show_classify_filter_command_fn (vlib_main_t * vm,
|
||||
|
||||
if (verbose)
|
||||
{
|
||||
u8 *s = 0;
|
||||
u32 table_index;
|
||||
|
||||
for (j = 0; j < vec_len (set->table_indices); j++)
|
||||
@ -2084,8 +2083,7 @@ show_classify_filter_command_fn (vlib_main_t * vm,
|
||||
}
|
||||
else
|
||||
{
|
||||
u8 *s = 0;
|
||||
table_index = set->table_indices[0];
|
||||
table_index = set->table_indices ? set->table_indices[0] : ~0;
|
||||
|
||||
if (table_index != ~0)
|
||||
s = format (s, " %u", table_index);
|
||||
|
Loading…
x
Reference in New Issue
Block a user