Don't pass a negative value to __redisAsyncCommand if redisFormatSdsCommandArgv fails
This commit is contained in:
parent
97cd8157f7
commit
706129a161
2
async.c
2
async.c
@ -676,6 +676,8 @@ int redisAsyncCommandArgv(redisAsyncContext *ac, redisCallbackFn *fn, void *priv
|
||||
int len;
|
||||
int status;
|
||||
len = redisFormatSdsCommandArgv(&cmd,argc,argv,argvlen);
|
||||
if (len < 0)
|
||||
return REDIS_ERR;
|
||||
status = __redisAsyncCommand(ac,fn,privdata,cmd,len);
|
||||
sdsfree(cmd);
|
||||
return status;
|
||||
|
Loading…
Reference in New Issue
Block a user