aboutsummaryrefslogtreecommitdiffstats
path: root/src/vpp-api/client
diff options
context:
space:
mode:
authorSteven Luong <sluong@cisco.com>2022-01-28 14:12:53 -0800
committerOle Tr�an <otroan@employees.org>2022-02-01 15:19:06 +0000
commit0a214804f873747548d022d44d21e5a43ad997b3 (patch)
tree3bfe299a8d28d7e1bf0e8f8e8c3380947fa2a4d2 /src/vpp-api/client
parentdafdcf7e6dc42c3bd73dc040ef67352f94956a71 (diff)
stats: vpp_get_stats crashes in stat_segment_data_free
STAT_DIR_TYPE_EMPTY is not handled. This can happen when the interface is deleted. Type: fix Signed-off-by: Steven Luong <sluong@cisco.com> Change-Id: Ic1f5a1a0e7005059628d1dde31118d692c1967d8
Diffstat (limited to 'src/vpp-api/client')
-rw-r--r--src/vpp-api/client/stat_client.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vpp-api/client/stat_client.c b/src/vpp-api/client/stat_client.c
index 2c30be62326..b0c83919f03 100644
--- a/src/vpp-api/client/stat_client.c
+++ b/src/vpp-api/client/stat_client.c
@@ -338,6 +338,7 @@ stat_segment_data_free (stat_segment_data_t * res)
vec_free (res[i].error_vector);
break;
case STAT_DIR_TYPE_SCALAR_INDEX:
+ case STAT_DIR_TYPE_EMPTY:
break;
default:
assert (0);