Commit af807d87 authored by antirez's avatar antirez
Browse files

Fixed crash with only space and newline as command (issue 61), thanks to a guy...

Fixed crash with only space and newline as command (issue 61), thanks to a guy having as nick "fixxxerrr"
parent ae21a529
...@@ -1488,7 +1488,7 @@ again: ...@@ -1488,7 +1488,7 @@ again:
/* Execute the command. If the client is still valid /* Execute the command. If the client is still valid
* after processCommand() return and there is something * after processCommand() return and there is something
* on the query buffer try to process the next command. */ * 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; return;
} else if (sdslen(c->querybuf) >= REDIS_REQUEST_MAX_SIZE) { } else if (sdslen(c->querybuf) >= REDIS_REQUEST_MAX_SIZE) {
redisLog(REDIS_DEBUG, "Client protocol error"); redisLog(REDIS_DEBUG, "Client protocol error");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment