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
4acd6973
Commit
4acd6973
authored
Jan 18, 2018
by
antirez
Browse files
Fix migrateCommand() access of not initialized byte.
parent
548e4fe0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cluster.c
View file @
4acd6973
...
...
@@ -5057,12 +5057,15 @@ try_again:
socket_error
=
1
;
break
;
}
if
(
buf0
[
0
]
==
'-'
||
(
select
&&
buf1
[
0
]
==
'-'
)
||
buf2
[
0
]
==
'-'
)
{
if
((
password
&&
buf0
[
0
]
==
'-'
)
||
(
select
&&
buf1
[
0
]
==
'-'
)
||
buf2
[
0
]
==
'-'
)
{
/* On error assume that last_dbid is no longer valid. */
if
(
!
error_from_target
)
{
cs
->
last_dbid
=
-
1
;
char
*
errbuf
;
if
(
buf0
[
0
]
==
'-'
)
errbuf
=
buf0
;
if
(
password
&&
buf0
[
0
]
==
'-'
)
errbuf
=
buf0
;
else
if
(
select
&&
buf1
[
0
]
==
'-'
)
errbuf
=
buf1
;
else
errbuf
=
buf2
;
...
...
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