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
2c7972ce
Commit
2c7972ce
authored
Aug 14, 2018
by
zhaozhao.zz
Committed by
antirez
Aug 29, 2018
Browse files
networking: just return C_OK if multibulk processing saw a <= 0 length.
parent
1203a04f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/networking.c
View file @
2c7972ce
...
@@ -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