From af0e51f2e15bc9c63d11229e64ce7884e1a1402a Mon Sep 17 00:00:00 2001 From: Pieter Noordhuis Date: Wed, 27 Apr 2011 13:16:23 +0200 Subject: [PATCH] Move code --- src/networking.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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 */ -- 2.45.2