summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2013-07-22 11:05:55 +0200
committerantirez <antirez@gmail.com>2013-07-22 11:05:55 +0200
commit7ed7652846a0cb5f3db25e98b323ba75a31ebcb5 (patch)
tree2cf5d9c52f998ca3a66c0cbc10010454d80b987e
parenta31693417dba3b2ddad46386778e191daef85e21 (diff)
downloadredis-7ed7652846a0cb5f3db25e98b323ba75a31ebcb5.tar.gz
Fixed a possible bug in client->reply_bytes computation.
-rw-r--r--src/networking.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/networking.c b/src/networking.c
index 4066d69a8..a9f016862 100644
--- a/src/networking.c
+++ b/src/networking.c
@@ -781,6 +781,7 @@ void sendReplyToClient(aeEventLoop *el, int fd, void *privdata, int mask) {
if (objlen == 0) {
listDelNode(c->reply,listFirst(c->reply));
+ c->reply_bytes -= objmem;
continue;
}