summaryrefslogtreecommitdiffstats
path: root/src/vnet/lawful-intercept/lawful_intercept.c
diff options
context:
space:
mode:
authorhemant_mnkcg <hemant@mnkcg.com>2021-04-27 18:02:13 -0400
committerDave Wallace <dwallacelf@gmail.com>2021-05-10 22:47:09 +0000
commit1691da62d9105a134f219adeafd5e27b80725701 (patch)
tree82f60397b2def7c91ad0d5fe27bf1a1379f0fcff /src/vnet/lawful-intercept/lawful_intercept.c
parentea72764204dac0a1ab6412bc27b758faead2ca10 (diff)
misc: fix crash in lawful intercept CLI
Type: fix Signed-off-by: hemant_mnkcg <hemant@mnkcg.com> Change-Id: I097815617053dac09de7ad3092b3d3071770114f
Diffstat (limited to 'src/vnet/lawful-intercept/lawful_intercept.c')
-rw-r--r--src/vnet/lawful-intercept/lawful_intercept.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/vnet/lawful-intercept/lawful_intercept.c b/src/vnet/lawful-intercept/lawful_intercept.c
index 484b898d69a..fff44fc3a67 100644
--- a/src/vnet/lawful-intercept/lawful_intercept.c
+++ b/src/vnet/lawful-intercept/lawful_intercept.c
@@ -59,13 +59,13 @@ set_li_command_fn (vlib_main_t * vm,
if (lm->collectors[i].as_u32 == collector.as_u32)
{
if (lm->ports[i] == udp_port)
- return clib_error_return
- (0, "collector %U:%d already configured",
- &collector, udp_port);
+ return clib_error_return (
+ 0, "collector %U:%d already configured", format_ip4_address,
+ &collector, udp_port);
else
- return clib_error_return
- (0, "collector %U already configured with port %d",
- &collector, (int) (lm->ports[i]));
+ return clib_error_return (
+ 0, "collector %U already configured with port %d",
+ format_ip4_address, &collector, (int) (lm->ports[i]));
}
}
vec_add1 (lm->collectors, collector);