Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
d548f3da
Commit
d548f3da
authored
Apr 27, 2011
by
Pieter Noordhuis
Browse files
Move code
parent
01fc59b7
Changes
1
Show whitespace changes
Inline
Side-by-side
src/networking.c
View file @
d548f3da
...
@@ -711,13 +711,14 @@ int processMultibulkBuffer(redisClient *c) {
...
@@ -711,13 +711,14 @@ int processMultibulkBuffer(redisClient *c) {
addReplyError
(
c
,
"Protocol error: invalid multibulk length"
);
addReplyError
(
c
,
"Protocol error: invalid multibulk length"
);
setProtocolError
(
c
,
pos
);
setProtocolError
(
c
,
pos
);
return
REDIS_ERR
;
return
REDIS_ERR
;
}
else
{
}
pos
=
(
newline
-
c
->
querybuf
)
+
2
;
pos
=
(
newline
-
c
->
querybuf
)
+
2
;
if
(
ll
<=
0
)
{
if
(
ll
<=
0
)
{
c
->
querybuf
=
sdsrange
(
c
->
querybuf
,
pos
,
-
1
);
c
->
querybuf
=
sdsrange
(
c
->
querybuf
,
pos
,
-
1
);
return
REDIS_OK
;
return
REDIS_OK
;
}
}
}
c
->
multibulklen
=
ll
;
c
->
multibulklen
=
ll
;
/* Setup argv array on client structure */
/* Setup argv array on client structure */
...
...
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