summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHongjun Ni <hongjun.ni@intel.com>2018-07-18 00:17:44 +0800
committerFlorin Coras <florin.coras@gmail.com>2018-07-18 04:41:09 +0000
commit54d0ac39f70b267f86e30c84d0e5b0c41773d1c4 (patch)
treea7b8999c71155cbb23283b8fa792631d87b23a33
parentd6dfd002328676eddda3b90bf46af0128a119b75 (diff)
VPP crash when run "lb set interface nat4 in <intc>" VPP-1343
Change-Id: I23be9c29227e7dd1bb11b5b7fa910bb61c2be6c9 Signed-off-by: Hongjun Ni <hongjun.ni@intel.com> (cherry picked from commit b4b2488202ff4282cc4a7bd779cc33934286c5cd)
-rw-r--r--src/plugins/lb/cli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/lb/cli.c b/src/plugins/lb/cli.c
index 2bd06b98b6a..76f05a586de 100644
--- a/src/plugins/lb/cli.c
+++ b/src/plugins/lb/cli.c
@@ -359,7 +359,7 @@ lb_set_interface_nat_command_fn (vlib_main_t * vm,
unformat_input_t _line_input, *line_input = &_line_input;
vnet_main_t * vnm = vnet_get_main();
clib_error_t * error = 0;
- u32 * sw_if_index = 0;
+ u32 _sw_if_index, *sw_if_index = &_sw_if_index;
u32 * inside_sw_if_indices = 0;
int is_del = 0;