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
63e46e5f
Commit
63e46e5f
authored
Jan 07, 2020
by
Leo Murillo
Browse files
Fix bug on KEYS command where pattern starts with * followed by \x00 (null char).
parent
0af467d1
Changes
1
Show whitespace changes
Inline
Side-by-side
src/db.c
View file @
63e46e5f
...
...
@@ -602,7 +602,7 @@ void keysCommand(client *c) {
void
*
replylen
=
addReplyDeferredLen
(
c
);
di
=
dictGetSafeIterator
(
c
->
db
->
dict
);
allkeys
=
(
pattern
[
0
]
==
'*'
&&
p
attern
[
1
]
==
'\0'
);
allkeys
=
(
pattern
[
0
]
==
'*'
&&
p
len
==
1
);
while
((
de
=
dictNext
(
di
))
!=
NULL
)
{
sds
key
=
dictGetKey
(
de
);
robj
*
keyobj
;
...
...
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