vlib: fix coverity 274750, part 2

Add another missing null check.

Type: fix
Change-Id: Iec4de548810efe369a6e61b8787131230506cff6
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
This commit is contained in:
Andrew Yourtchenko
2022-08-26 13:46:44 +00:00
committed by Damjan Marion
parent a21b38e17a
commit 618afb5fb0

View 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;