Move code

This commit is contained in:
Pieter Noordhuis 2011-04-27 13:16:23 +02:00
parent 5282562117
commit af0e51f2e1

View File

@ -720,13 +720,14 @@ int processMultibulkBuffer(redisClient *c) {
addReplyError(c,"Protocol error: invalid multibulk length");
setProtocolError(c,pos);
return REDIS_ERR;
} else {
pos = (newline-c->querybuf)+2;
if (ll <= 0) {
c->querybuf = sdsrange(c->querybuf,pos,-1);
return REDIS_OK;
}
}
pos = (newline-c->querybuf)+2;
if (ll <= 0) {
c->querybuf = sdsrange(c->querybuf,pos,-1);
return REDIS_OK;
}
c->multibulklen = ll;
/* Setup argv array on client structure */