diff options
author | zhaozhao.zz <zhaozhao.zz@alibaba-inc.com> | 2018-12-07 19:14:33 +0800 |
---|---|---|
committer | zhaozhao.zz <zhaozhao.zz@alibaba-inc.com> | 2018-12-07 19:14:33 +0800 |
commit | 28c42814956a40f6c7b432a9692e1f1d7437925c (patch) | |
tree | 9080256b2ffe0ffc5a3b1ff1cdce015739b25847 | |
parent | 430a987f4e6c7a011b0841042e4bf34ef7d4b19b (diff) | |
download | redis-28c42814956a40f6c7b432a9692e1f1d7437925c.tar.gz |
networking: current_client should not be NULL when trim qb_pos
-rw-r--r-- | src/networking.c | 2 |
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; } |