mirror of
https://github.com/fluencelabs/redis
synced 2025-03-17 16:10:50 +00:00
Fixed crash with only space and newline as command (issue 61), thanks to a guy having as nick "fixxxerrr"
This commit is contained in:
parent
ae21a52926
commit
af807d87e8
2
redis.c
2
redis.c
@ -1488,7 +1488,7 @@ again:
|
||||
/* Execute the command. If the client is still valid
|
||||
* after processCommand() return and there is something
|
||||
* on the query buffer try to process the next command. */
|
||||
if (processCommand(c) && sdslen(c->querybuf)) goto again;
|
||||
if (c->argc && processCommand(c) && sdslen(c->querybuf)) goto again;
|
||||
return;
|
||||
} else if (sdslen(c->querybuf) >= REDIS_REQUEST_MAX_SIZE) {
|
||||
redisLog(REDIS_DEBUG, "Client protocol error");
|
||||
|
Loading…
x
Reference in New Issue
Block a user