summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrew Yourtchenko <ayourtch@gmail.com>2022-08-17 13:24:11 +0000
committerMatthew Smith <mgsmith@netgate.com>2022-08-17 15:30:52 +0000
commita3018af21db46fc4158ab075bac4009c3640cc59 (patch)
tree0f6b233036d12923cfffff70487a09151ad958ee /src
parentfc025725b895057d16687ebcab22d1bbb0837cba (diff)
vlib: fix coverity 274750
Add a missing null check. Type: fix Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com> Change-Id: Ie6234804e2b89adc918ef9075f9defbb1fd35e44
Diffstat (limited to 'src')
-rw-r--r--src/vlibmemory/vlib_api_cli.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/vlibmemory/vlib_api_cli.c b/src/vlibmemory/vlib_api_cli.c
index 084080f1e6d..9991a9640f1 100644
--- a/src/vlibmemory/vlib_api_cli.c
+++ b/src/vlibmemory/vlib_api_cli.c
@@ -568,7 +568,10 @@ vl_msg_api_process_file (vlib_main_t * vm, u8 * filename,
am->replay_in_progress = 0;
return;
}
- m->endian_handler (tmpbuf + sizeof (uword));
+ if (m)
+ {
+ m->endian_handler (tmpbuf + sizeof (uword));
+ }
}
/* msg_id always in network byte order */