diff options
author | Salvatore Sanfilippo <antirez@gmail.com> | 2020-01-10 12:18:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-10 12:18:19 +0100 |
commit | 51a01ca8a630fbdee3a1e71fbf318225652afea9 (patch) | |
tree | 9f8a26e316c54bca76ca97f5389221ce5cc82e5b /src/db.c | |
parent | b8d315ff7686dcf7883a3ed2970ff8cc68215daa (diff) | |
parent | 63e46e5f8db68f3b8b5e0ea6b3b852b1068c9894 (diff) | |
download | redis-51a01ca8a630fbdee3a1e71fbf318225652afea9.tar.gz |
Merge pull request #6746 from leomurillo/unstable
Fix bug on KEYS command where pattern starts with * followed by \x00
Diffstat (limited to 'src/db.c')
-rw-r--r-- | src/db.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -602,7 +602,7 @@ void keysCommand(client *c) { void *replylen = addReplyDeferredLen(c); di = dictGetSafeIterator(c->db->dict); - allkeys = (pattern[0] == '*' && pattern[1] == '\0'); + allkeys = (pattern[0] == '*' && plen == 1); while((de = dictNext(di)) != NULL) { sds key = dictGetKey(de); robj *keyobj; |