aboutsummaryrefslogtreecommitdiffstats
path: root/src/vlibmemory
diff options
context:
space:
mode:
authorAndrew Yourtchenko <ayourtch@gmail.com>2022-08-26 13:46:44 +0000
committerDamjan Marion <dmarion@0xa5.net>2022-08-30 14:11:30 +0000
commit618afb5fb0c1171e4e6bf5bfd642a6050b21ce4f (patch)
treed1904595fdc64447898829c43e67f608066524f8 /src/vlibmemory
parenta21b38e17ac5e04b6ded55904dc522bfca4933a5 (diff)
vlib: fix coverity 274750, part 2
Add another missing null check. Type: fix Change-Id: Iec4de548810efe369a6e61b8787131230506cff6 Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
Diffstat (limited to 'src/vlibmemory')
-rw-r--r--src/vlibmemory/vlib_api_cli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vlibmemory/vlib_api_cli.c b/src/vlibmemory/vlib_api_cli.c
index 9991a9640f1..e53ea959878 100644
--- a/src/vlibmemory/vlib_api_cli.c
+++ b/src/vlibmemory/vlib_api_cli.c
@@ -646,7 +646,7 @@ vl_msg_api_process_file (vlib_main_t * vm, u8 * filename,
}
else
{
- if (m->replay_allowed)
+ if (m && m->replay_allowed)
vlib_cli_output (vm, "Skipping msg id %d: no handler\n",
msg_id);
break;