From 64a80f2b790b837b0115ab1c15a73fc77119d354 Mon Sep 17 00:00:00 2001 From: zhanglimao Date: Sat, 15 Sep 2018 13:19:41 +0800 Subject: fix nsh map index error, it will cause vpp appear Segmentation fault when vpp process double packages Change-Id: Ib32bb351356b84aaf696c57398610b52a5a1f4dd Signed-off-by: zhanglimao --- src/plugins/nsh/nsh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/nsh/nsh.c') diff --git a/src/plugins/nsh/nsh.c b/src/plugins/nsh/nsh.c index 20e4603b449..33cf5522863 100644 --- a/src/plugins/nsh/nsh.c +++ b/src/plugins/nsh/nsh.c @@ -2000,7 +2000,7 @@ nsh_input_map (vlib_main_t * vm, goto trace1; } vnet_buffer (b1)->sw_if_index[VLIB_RX] = - map0->rx_sw_if_index; + map1->rx_sw_if_index; } /* Pop NSH header */ -- cgit 1.2.3-korg