Skip to content

Commit

Permalink
Move code
Browse files Browse the repository at this point in the history
  • Loading branch information
pietern committed May 5, 2011
1 parent 5282562 commit af0e51f
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/networking.c
Expand Up @@ -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 */
Expand Down

0 comments on commit af0e51f

Please sign in to comment.