Move code
This commit is contained in:
parent
5282562117
commit
af0e51f2e1
@ -720,13 +720,14 @@ int processMultibulkBuffer(redisClient *c) {
|
|||||||
addReplyError(c,"Protocol error: invalid multibulk length");
|
addReplyError(c,"Protocol error: invalid multibulk length");
|
||||||
setProtocolError(c,pos);
|
setProtocolError(c,pos);
|
||||||
return REDIS_ERR;
|
return REDIS_ERR;
|
||||||
} else {
|
}
|
||||||
|
|
||||||
pos = (newline-c->querybuf)+2;
|
pos = (newline-c->querybuf)+2;
|
||||||
if (ll <= 0) {
|
if (ll <= 0) {
|
||||||
c->querybuf = sdsrange(c->querybuf,pos,-1);
|
c->querybuf = sdsrange(c->querybuf,pos,-1);
|
||||||
return REDIS_OK;
|
return REDIS_OK;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
c->multibulklen = ll;
|
c->multibulklen = ll;
|
||||||
|
|
||||||
/* Setup argv array on client structure */
|
/* Setup argv array on client structure */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user