From: Andrew Yourtchenko Date: Fri, 26 Aug 2022 13:46:44 +0000 (+0000) Subject: vlib: fix coverity 274750, part 2 X-Git-Tag: v23.02-rc0~56 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=618afb5fb0c1171e4e6bf5bfd642a6050b21ce4f;p=vpp.git vlib: fix coverity 274750, part 2 Add another missing null check. Type: fix Change-Id: Iec4de548810efe369a6e61b8787131230506cff6 Signed-off-by: Andrew Yourtchenko --- 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;