mirror of
https://github.com/fluencelabs/redis
synced 2025-06-14 17:51:21 +00:00
Return proper error on requests with an unbalanced number of quotes.
This commit is contained in:
@ -868,6 +868,11 @@ int processInlineBuffer(redisClient *c) {
|
||||
aux = sdsnewlen(c->querybuf,querylen);
|
||||
argv = sdssplitargs(aux,&argc);
|
||||
sdsfree(aux);
|
||||
if (argv == NULL) {
|
||||
addReplyError(c,"Protocol error: unbalanced quotes in request");
|
||||
setProtocolError(c,0);
|
||||
return REDIS_ERR;
|
||||
}
|
||||
|
||||
/* Newline from slaves can be used to refresh the last ACK time.
|
||||
* This is useful for a slave to ping back while loading a big
|
||||
|
Reference in New Issue
Block a user