using proto-max-bulk-len in checkStringLength for SETRANGE and APPEND
(cherry picked from commit 2e69bfe44d154d6739da48ff87f1c66045f68e93)
This commit is contained in:
parent
171f83306e
commit
44ef19743e
@ -35,8 +35,8 @@
|
||||
*----------------------------------------------------------------------------*/
|
||||
|
||||
static int checkStringLength(client *c, long long size) {
|
||||
if (size > 512*1024*1024) {
|
||||
addReplyError(c,"string exceeds maximum allowed size (512MB)");
|
||||
if (!(c->flags & CLIENT_MASTER) && size > server.proto_max_bulk_len) {
|
||||
addReplyError(c,"string exceeds maximum allowed size (proto-max-bulk-len)");
|
||||
return C_ERR;
|
||||
}
|
||||
return C_OK;
|
||||
|
Loading…
x
Reference in New Issue
Block a user