Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
28c42814
Commit
28c42814
authored
Dec 07, 2018
by
zhaozhao.zz
Browse files
networking: current_client should not be NULL when trim qb_pos
parent
430a987f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/networking.c
View file @
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
;
}
}
...
...
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