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
c6341ce3
Unverified
Commit
c6341ce3
authored
Dec 07, 2018
by
Salvatore Sanfilippo
Committed by
GitHub
Dec 07, 2018
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/networking.c
View file @
c6341ce3
...
@@ -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