Unverified Commit c6341ce3 authored by Salvatore Sanfilippo's avatar Salvatore Sanfilippo Committed by GitHub
Browse files

Merge pull request #5673 from soloestoy/check-current-client-after-freememory

networking: current_client should not be NULL when trim qb_pos
parents 5a0b7212 28c42814
...@@ -1470,7 +1470,7 @@ void processInputBuffer(client *c) { ...@@ -1470,7 +1470,7 @@ void processInputBuffer(client *c) {
} }
/* Trim to pos */ /* Trim to pos */
if (c->qb_pos) { if (server.current_client != NULL && c->qb_pos) {
sdsrange(c->querybuf,c->qb_pos,-1); sdsrange(c->querybuf,c->qb_pos,-1);
c->qb_pos = 0; c->qb_pos = 0;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment