Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
hiredis
Commits
706129a1
Commit
706129a1
authored
May 15, 2017
by
Frederik Deweerdt
Browse files
Don't pass a negative value to __redisAsyncCommand if redisFormatSdsCommandArgv fails
parent
97cd8157
Changes
1
Hide whitespace changes
Inline
Side-by-side
async.c
View file @
706129a1
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment