summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2018-12-07 17:07:14 +0100
committerantirez <antirez@gmail.com>2018-12-07 17:07:14 +0100
commitcdab4c3e0911197487a54f1ebe86f51a9a0fcac0 (patch)
tree87d15b46da95bb3f271fc2f9a9ab2079c9205153
parent7e0cc2bb91dc610b68d2e063728a4416efd19885 (diff)
parentc6341ce3730cbe6c224c75311e79d5c50d238886 (diff)
downloadredis-cdab4c3e0911197487a54f1ebe86f51a9a0fcac0.tar.gz
Merge branch 'unstable' of github.com:/antirez/redis into unstable
-rw-r--r--src/networking.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/networking.c b/src/networking.c
index 02d2a17ba..f19eb86bb 100644
--- a/src/networking.c
+++ b/src/networking.c
@@ -1470,7 +1470,7 @@ void processInputBuffer(client *c) {
}
/* Trim to pos */
- if (c->qb_pos) {
+ if (server.current_client != NULL && c->qb_pos) {
sdsrange(c->querybuf,c->qb_pos,-1);
c->qb_pos = 0;
}