mirror of
https://github.com/fluencelabs/redis
synced 2025-06-12 08:41:21 +00:00
New config options about protocol prefixed with "proto".
Related to #4568.
This commit is contained in:
@ -1254,7 +1254,7 @@ int processMultibulkBuffer(client *c) {
|
||||
}
|
||||
|
||||
ok = string2ll(c->querybuf+pos+1,newline-(c->querybuf+pos+1),&ll);
|
||||
if (!ok || ll < 0 || ll > server.max_bulk_len) {
|
||||
if (!ok || ll < 0 || ll > server.proto_max_bulk_len) {
|
||||
addReplyError(c,"Protocol error: invalid bulk length");
|
||||
setProtocolError("invalid bulk length",c,pos);
|
||||
return C_ERR;
|
||||
|
Reference in New Issue
Block a user