From 618afb5fb0c1171e4e6bf5bfd642a6050b21ce4f Mon Sep 17 00:00:00 2001 From: Andrew Yourtchenko Date: Fri, 26 Aug 2022 13:46:44 +0000 Subject: vlib: fix coverity 274750, part 2 Add another missing null check. Type: fix Change-Id: Iec4de548810efe369a6e61b8787131230506cff6 Signed-off-by: Andrew Yourtchenko --- src/vlibmemory/vlib_api_cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit 1.2.3-korg