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
3c87d572
Commit
3c87d572
authored
Oct 30, 2018
by
zhaozhao.zz
Committed by
Oran Agra
Sep 01, 2020
Browse files
CLIENT_MASTER should ignore server.proto_max_bulk_len
(cherry picked from commit
589e610e
)
parent
d3831559
Changes
1
Show whitespace changes
Inline
Side-by-side
src/networking.c
View file @
3c87d572
...
@@ -1691,7 +1691,8 @@ int processMultibulkBuffer(client *c) {
...
@@ -1691,7 +1691,8 @@ int processMultibulkBuffer(client *c) {
}
}
ok = string2ll(c->querybuf+c->qb_pos+1,newline-(c->querybuf+c->qb_pos+1),&ll);
ok = string2ll(c->querybuf+c->qb_pos+1,newline-(c->querybuf+c->qb_pos+1),&ll);
if
(
!
ok
||
ll
<
0
||
ll
>
server
.
proto_max_bulk_len
)
{
if (!ok || ll < 0 ||
(!(c->flags & CLIENT_MASTER) && ll > server.proto_max_bulk_len)) {
addReplyError(c,"Protocol error: invalid bulk length");
addReplyError(c,"Protocol error: invalid bulk length");
setProtocolError("invalid bulk length",c);
setProtocolError("invalid bulk length",c);
return C_ERR;
return C_ERR;
...
...
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