Code Review
/
ric-plt
/
lib
/
rmr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Address potential error state after good send
[ric-plt/lib/rmr.git]
/
src
/
rmr
/
common
/
src
/
symtab.c
diff --git
a/src/rmr/common/src/symtab.c
b/src/rmr/common/src/symtab.c
index
e96af03
..
4820ebd
100644
(file)
--- a/
src/rmr/common/src/symtab.c
+++ b/
src/rmr/common/src/symtab.c
@@
-321,7
+321,10
@@
extern void *rmr_sym_get( void *vtable, const char *name, unsigned int class )
int hv; // hash value of key
uint64_t nkey; // numeric key if class 0
- table = (Sym_tab *) vtable;
+ if( (table = (Sym_tab *) vtable) == NULL ) {
+ return NULL;
+ }
+
sym_tab = table->symlist;
if( class ) {