aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/plugins/ioam/ip6/ioam_cache.c3
-rw-r--r--src/plugins/nat/nat.c1
-rw-r--r--src/vnet/udp/udp_encap.c3
3 files changed, 7 insertions, 0 deletions
diff --git a/src/plugins/ioam/ip6/ioam_cache.c b/src/plugins/ioam/ip6/ioam_cache.c
index 627f8b65d13..e2f878a5f77 100644
--- a/src/plugins/ioam/ip6/ioam_cache.c
+++ b/src/plugins/ioam/ip6/ioam_cache.c
@@ -351,6 +351,9 @@ show_ioam_cache_command_fn (vlib_main_t * vm,
{
if (unformat (input, "verbose"))
verbose = 1;
+ else
+ return clib_error_return (0, "unknown input `%U'",
+ format_unformat_error, input);
}
ioam_cache_table_print (vm, verbose);
diff --git a/src/plugins/nat/nat.c b/src/plugins/nat/nat.c
index df00f5e2ece..e9b2c2c07ba 100644
--- a/src/plugins/nat/nat.c
+++ b/src/plugins/nat/nat.c
@@ -3967,6 +3967,7 @@ snat_det_reverse_command_fn (vlib_main_t * vm,
{
error = clib_error_return (0, "unknown input '%U'",
format_unformat_error, line_input);
+ goto done;
}
}
diff --git a/src/vnet/udp/udp_encap.c b/src/vnet/udp/udp_encap.c
index 91d730c0ade..87b2c09e78c 100644
--- a/src/vnet/udp/udp_encap.c
+++ b/src/vnet/udp/udp_encap.c
@@ -581,6 +581,9 @@ udp_encap_show (vlib_main_t * vm,
{
if (unformat (input, "%d", &ue_id))
;
+ else
+ return clib_error_return (0, "unknown input `%U'",
+ format_unformat_error, input);
}
if (~0 == ue_id)