From: zhanglimao Date: Sat, 15 Sep 2018 05:19:41 +0000 (+0800) Subject: fix nsh map index error, it will cause vpp appear Segmentation fault when vpp process... X-Git-Tag: v18.10-rc1~178 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=64a80f2b790b837b0115ab1c15a73fc77119d354;hp=35e22ceafae6410e317b1ff82f33d0547de6d46f;p=vpp.git fix nsh map index error, it will cause vpp appear Segmentation fault when vpp process double packages Change-Id: Ib32bb351356b84aaf696c57398610b52a5a1f4dd Signed-off-by: zhanglimao --- 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 */