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
d5fe17dc
Commit
d5fe17dc
authored
Jan 25, 2019
by
antirez
Browse files
Merge branch 'unstable' of github.com:/antirez/redis into unstable
parents
b82d3568
1aa9fa37
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/acl.c
View file @
d5fe17dc
...
...
@@ -580,7 +580,7 @@ int ACLCheckCommandPerm(client *c) {
for
(
int
j
=
0
;
j
<
numkeys
;
j
++
)
{
listIter
li
;
listNode
*
ln
;
listRewind
(
u
->
pa
ssword
s
,
&
li
);
listRewind
(
u
->
pa
ttern
s
,
&
li
);
/* Test this key against every pattern. */
int
match
=
0
;
...
...
@@ -595,9 +595,12 @@ int ACLCheckCommandPerm(client *c) {
break
;
}
}
if
(
!
match
)
return
ACL_DENIED_KEY
;
if
(
!
match
)
{
getKeysFreeResult
(
keyidx
);
return
ACL_DENIED_KEY
;
}
}
getKeysFreeResult
(
keyidx
);
if
(
keyidx
)
getKeysFreeResult
(
keyidx
);
}
/* If we survived all the above checks, the user can execute the
...
...
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