Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
beab3151
Commit
beab3151
authored
Dec 07, 2018
by
zhaozhao.zz
Committed by
antirez
Dec 11, 2018
Browse files
networking: current_client should not be NULL when trim qb_pos
parent
07ccb642
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/networking.c
View file @
beab3151
...
@@ -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
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment