From: Pieter Noordhuis Date: Wed, 27 Apr 2011 11:16:23 +0000 (+0200) Subject: Move code X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/af0e51f2e15bc9c63d11229e64ce7884e1a1402a Move code --- diff --git a/src/networking.c b/src/networking.c index 9d41b380..48febb09 100644 --- a/src/networking.c +++ b/src/networking.c @@ -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 */