Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
dafdcf7
)
stats: vpp_get_stats crashes in stat_segment_data_free
42/35142/2
author
Steven Luong
<sluong@cisco.com>
Fri, 28 Jan 2022 22:12:53 +0000
(14:12 -0800)
committer
Ole Tr�an
<otroan@employees.org>
Tue, 1 Feb 2022 15:19:06 +0000
(15:19 +0000)
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
src/vpp-api/client/stat_client.c
patch
|
blob
|
history
diff --git
a/src/vpp-api/client/stat_client.c
b/src/vpp-api/client/stat_client.c
index
2c30be6
..
b0c8391
100644
(file)
--- 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);