diff options
author | Neale Ranns <nranns@cisco.com> | 2018-12-04 09:39:40 +0000 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2018-12-05 11:28:45 +0000 |
commit | 909ba93249532a35ce53e578cf622c8069045f84 (patch) | |
tree | f75d2558926ec6ebcc71ef9c08ed590de688cfa1 /src/vnet | |
parent | 3351801ce33874cec26d62df2542c2d59885d1ec (diff) |
MPLS: buffer over-run with incorrectly init'd vector. fix VAT dump
Change-Id: Ifdbb4c4cffd90c4ec8b39513d284ebf7be39eca5
Signed-off-by: Neale Ranns <nranns@cisco.com>
(cherry picked from commit 44cea225e2238a3c549f17f315cd1fbc6978c277)
Diffstat (limited to 'src/vnet')
-rw-r--r-- | src/vnet/mpls/interface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/mpls/interface.c b/src/vnet/mpls/interface.c index ec541f760de..46d80f07a38 100644 --- a/src/vnet/mpls/interface.c +++ b/src/vnet/mpls/interface.c @@ -62,7 +62,7 @@ mpls_sw_interface_enable_disable (mpls_main_t * mm, fib_table_lock(lfib_index, FIB_PROTOCOL_MPLS, (is_api? FIB_SOURCE_API: FIB_SOURCE_CLI)); - vec_validate(mm->fib_index_by_sw_if_index, 0); + vec_validate(mm->fib_index_by_sw_if_index, sw_if_index); mm->fib_index_by_sw_if_index[sw_if_index] = lfib_index; } else |