Commit af0e51f2 authored by Pieter Noordhuis's avatar Pieter Noordhuis
Browse files

Move code

parent 52825621
...@@ -720,13 +720,14 @@ int processMultibulkBuffer(redisClient *c) { ...@@ -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;
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; c->multibulklen = ll;
/* Setup argv array on client structure */ /* Setup argv array on client structure */
......
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