vlib: fix coverity 274750, part 2 25/37025/2
authorAndrew Yourtchenko <ayourtch@gmail.com>
Fri, 26 Aug 2022 13:46:44 +0000 (13:46 +0000)
committerDamjan Marion <dmarion@0xa5.net>
Tue, 30 Aug 2022 14:11:30 +0000 (14:11 +0000)
Add another missing null check.

Type: fix
Change-Id: Iec4de548810efe369a6e61b8787131230506cff6
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
src/vlibmemory/vlib_api_cli.c

index 9991a96..e53ea95 100644 (file)
@@ -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;