From c4a51546deebba1933a42a139f66b3d94436145f Mon Sep 17 00:00:00 2001 From: flyingeagle23 Date: Fri, 8 Sep 2017 15:32:59 +0800 Subject: lb_vip_command_fn param redundancy when unformat ip address(VPP-977) Change-Id: I92de5b9ed42cda6c0438b8dc71892d322b642a70 Signed-off-by: flyingeagle23 --- src/plugins/lb/cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins') diff --git a/src/plugins/lb/cli.c b/src/plugins/lb/cli.c index 6452a875..f6d65201 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; -- cgit 1.2.3-korg