aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/nsh/nsh.c
diff options
context:
space:
mode:
authorzhanglimao <zhanglimao0017@gmail.com>2018-09-15 13:19:41 +0800
committerDave Barach <openvpp@barachs.net>2018-09-16 15:05:08 +0000
commit64a80f2b790b837b0115ab1c15a73fc77119d354 (patch)
tree48a5fbcc8cb78a0cd59a51715c338359a5600f84 /src/plugins/nsh/nsh.c
parent35e22ceafae6410e317b1ff82f33d0547de6d46f (diff)
fix nsh map index error, it will cause vpp appear Segmentation fault when vpp process double packages
Change-Id: Ib32bb351356b84aaf696c57398610b52a5a1f4dd Signed-off-by: zhanglimao <zhanglimao0017@gmail.com>
Diffstat (limited to 'src/plugins/nsh/nsh.c')
-rw-r--r--src/plugins/nsh/nsh.c2
1 files changed, 1 insertions, 1 deletions
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 */