diff options
Diffstat (limited to 'src/module.c')
-rw-r--r-- | src/module.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/module.c b/src/module.c index 55568aca8..d5f9a50cb 100644 --- a/src/module.c +++ b/src/module.c @@ -3067,7 +3067,10 @@ RedisModuleCallReply *RM_Call(RedisModuleCtx *ctx, const char *cmdname, const ch /* We handle the above format error only when the client is setup so that * we can free it normally. */ - if (argv == NULL) goto cleanup; + if (argv == NULL) { + errno = EINVAL; + goto cleanup; + } /* Call command filters */ moduleCallCommandFilters(c); |