classify: fix crash if no pcap filter has been configured 64/31464/3
authorBenoît Ganne <bganne@cisco.com>
Fri, 26 Feb 2021 13:46:58 +0000 (14:46 +0100)
committerDave Barach <openvpp@barachs.net>
Tue, 2 Mar 2021 12:59:55 +0000 (12:59 +0000)
commit5943e36b60955ff7baaac383dcd121e36c999711
tree99913db859d4ea82ebb1d93bf14496f840660ead
parent8c45e5109522cf9bbc98785283cd4c923f486fe6
classify: fix crash if no pcap filter has been configured

If no pcap filters have ever been configured and we try to enable pcap
capture with a filter, cm->classify_table_index_by_sw_if_index is not
initialized yet.

Type: fix

Change-Id: I2f509c58f9984951b1ad81c1c8ed912cb594fce1
Signed-off-by: Benoît Ganne <bganne@cisco.com>
src/vnet/interface_cli.c