aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorflyingeagle23 <wang.hui56@zte.com.cn>2017-09-08 15:32:59 +0800
committerFlorin Coras <florin.coras@gmail.com>2017-09-13 17:26:56 +0000
commitc4a51546deebba1933a42a139f66b3d94436145f (patch)
tree81acb5c52e6af9bf5304c0f590ff4ed12a8f0422 /src
parentaeedf2665cd6173a17ca844db34ecaf8997dcf62 (diff)
lb_vip_command_fn param redundancy when unformat ip address(VPP-977)
Change-Id: I92de5b9ed42cda6c0438b8dc71892d322b642a70 Signed-off-by: flyingeagle23 <wang.hui56@zte.com.cn>
Diffstat (limited to 'src')
-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 6452a87563e..f6d65201448 100644
--- a/src/plugins/lb/cli.c
+++ b/src/plugins/lb/cli.c
@@ -33,7 +33,7 @@ lb_vip_command_fn (vlib_main_t * vm,
if (!unformat_user (input, unformat_line_input, line_input))
return 0;
- if (!unformat(line_input, "%U", unformat_ip46_prefix, &prefix, &plen, IP46_TYPE_ANY, &plen)) {
+ if (!unformat(line_input, "%U", unformat_ip46_prefix, &prefix, &plen, IP46_TYPE_ANY)) {
error = clib_error_return (0, "invalid vip prefix: '%U'",
format_unformat_error, line_input);
goto done;