X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/19408d83a41bd3a1161bd6e5240eb1c60091d40b..8df3dcada5e34c6a99666931ee6dcccd57685353:/src/t_hash.c?ds=inline diff --git a/src/t_hash.c b/src/t_hash.c index 5cef1cab..071b7754 100644 --- a/src/t_hash.c +++ b/src/t_hash.c @@ -310,6 +310,7 @@ void hmgetCommand(redisClient *c) { o = lookupKeyRead(c->db,c->argv[1]); if (o != NULL && o->type != REDIS_HASH) { addReply(c,shared.wrongtypeerr); + return; } /* Note the check for o != NULL happens inside the loop. This is