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
955e00fb
Commit
955e00fb
authored
Dec 24, 2020
by
xhe
Browse files
ask protover for authentication
Signed-off-by:
xhe
<
xw897002528@gmail.com
>
parent
4e36925c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/networking.c
View file @
955e00fb
...
@@ -2769,6 +2769,11 @@ void helloCommand(client *c) {
...
@@ -2769,6 +2769,11 @@ void helloCommand(client *c) {
return
;
return
;
}
}
if
(
!
ver
&&
next_arg
<
c
->
argc
)
{
addReplyError
(
c
,
"Authentication needs to provide an protocol version"
);
return
;
}
for
(
int
j
=
next_arg
;
j
<
c
->
argc
;
j
++
)
{
for
(
int
j
=
next_arg
;
j
<
c
->
argc
;
j
++
)
{
int
moreargs
=
(
c
->
argc
-
1
)
-
j
;
int
moreargs
=
(
c
->
argc
-
1
)
-
j
;
const
char
*
opt
=
c
->
argv
[
j
]
->
ptr
;
const
char
*
opt
=
c
->
argv
[
j
]
->
ptr
;
...
...
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