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
589e610e
Commit
589e610e
authored
Oct 30, 2018
by
zhaozhao.zz
Committed by
zhaozhao.zz
Aug 11, 2020
Browse files
CLIENT_MASTER should ignore server.proto_max_bulk_len
parent
bd4b33d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/networking.c
View file @
589e610e
...
@@ -1694,7 +1694,8 @@ int processMultibulkBuffer(client *c) {
...
@@ -1694,7 +1694,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