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
1a292e06
Commit
1a292e06
authored
Oct 10, 2019
by
omg-by
Browse files
there should is AUTH && HELLO non authenticated state.
parent
a92921da
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server.c
View file @
1a292e06
...
@@ -3366,7 +3366,7 @@ int processCommand(client *c) {
...
@@ -3366,7 +3366,7 @@ int processCommand(client *c) {
!
c
->
authenticated
;
!
c
->
authenticated
;
if
(
auth_required
)
{
if
(
auth_required
)
{
/* AUTH and HELLO are valid even in non authenticated state. */
/* AUTH and HELLO are valid even in non authenticated state. */
if
(
c
->
cmd
->
proc
!=
authCommand
||
c
->
cmd
->
proc
=
=
helloCommand
)
{
if
(
c
->
cmd
->
proc
!=
authCommand
&&
c
->
cmd
->
proc
!
=
helloCommand
)
{
flagTransaction
(
c
);
flagTransaction
(
c
);
addReply
(
c
,
shared
.
noautherr
);
addReply
(
c
,
shared
.
noautherr
);
return
C_OK
;
return
C_OK
;
...
...
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