Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
fc02572
)
vlib: fix coverity 274750
24/36924/2
author
Andrew Yourtchenko
<ayourtch@gmail.com>
Wed, 17 Aug 2022 13:24:11 +0000
(13:24 +0000)
committer
Matthew Smith
<mgsmith@netgate.com>
Wed, 17 Aug 2022 15:30:52 +0000
(15:30 +0000)
Add a missing null check.
Type: fix
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
Change-Id: Ie6234804e2b89adc918ef9075f9defbb1fd35e44
src/vlibmemory/vlib_api_cli.c
patch
|
blob
|
history
diff --git
a/src/vlibmemory/vlib_api_cli.c
b/src/vlibmemory/vlib_api_cli.c
index
084080f
..
9991a96
100644
(file)
--- 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 */