Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
GBP: BD index not BD ID
[vpp.git]
/
src
/
plugins
/
gbp
/
gbp_ext_itf.c
diff --git
a/src/plugins/gbp/gbp_ext_itf.c
b/src/plugins/gbp/gbp_ext_itf.c
index
57ff625
..
16cdaa8
100644
(file)
--- a/
src/plugins/gbp/gbp_ext_itf.c
+++ b/
src/plugins/gbp/gbp_ext_itf.c
@@
-113,6
+113,9
@@
gbp_ext_itf_delete (u32 sw_if_index)
gbp_ext_itf_t *gx;
index_t gxi;
+ if (vec_len (gbp_ext_itf_db) <= sw_if_index)
+ return (VNET_API_ERROR_INVALID_SW_IF_INDEX);
+
gxi = gbp_ext_itf_db[sw_if_index];
if (INDEX_INVALID != gxi)