summaryrefslogtreecommitdiffstats
path: root/src/vnet/session/application.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet/session/application.c')
-rw-r--r--src/vnet/session/application.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/session/application.c b/src/vnet/session/application.c
index 9b77af90577..380c960bdaf 100644
--- a/src/vnet/session/application.c
+++ b/src/vnet/session/application.c
@@ -2379,7 +2379,7 @@ show_app_command_fn (vlib_main_t * vm, unformat_input_t * input,
if (app_index != ~0)
{
- app = application_get (app_index);
+ app = application_get_if_valid (app_index);
if (!app)
return clib_error_return (0, "No app with index %u", app_index);