summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rdb.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/rdb.c b/src/rdb.c
index 27e1b3135..61265433d 100644
--- a/src/rdb.c
+++ b/src/rdb.c
@@ -1871,7 +1871,10 @@ robj *rdbLoadObject(int rdbtype, rio *rdb, robj *key) {
}
} else if (rdbtype == RDB_TYPE_MODULE || rdbtype == RDB_TYPE_MODULE_2) {
uint64_t moduleid = rdbLoadLen(rdb,NULL);
- if (rioGetReadError(rdb)) return NULL;
+ if (rioGetReadError(rdb)) {
+ rdbReportReadError("Short read module id");
+ return NULL;
+ }
moduleType *mt = moduleTypeLookupModuleByID(moduleid);
char name[10];