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
f3b77510
Commit
f3b77510
authored
Jan 07, 2020
by
Leo Murillo
Committed by
antirez
Mar 05, 2020
Browse files
Fix bug on KEYS command where pattern starts with * followed by \x00 (null char).
parent
7f3fcedb
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/db.c
View file @
f3b77510
...
...
@@ -542,7 +542,7 @@ void keysCommand(client *c) {
void
*
replylen
=
addDeferredMultiBulkLength
(
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