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
redis
Commits
e623bd22
Commit
e623bd22
authored
Aug 14, 2018
by
zhaozhao.zz
Browse files
networking: just return C_OK if multibulk processing saw a <= 0 length.
parent
b89302c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/networking.c
View file @
e623bd22
...
@@ -1252,11 +1252,8 @@ int processMultibulkBuffer(client *c) {
...
@@ -1252,11 +1252,8 @@ int processMultibulkBuffer(client *c) {
}
}
c->qb_pos = (newline-c->querybuf)+2;
c->qb_pos = (newline-c->querybuf)+2;
if (ll <= 0) {
sdsrange(c->querybuf,c->qb_pos,-1);
if (ll <= 0) return C_OK;
c->qb_pos = 0;
return C_OK;
}
c->multibulklen = ll;
c->multibulklen = ll;
...
...
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