X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/89f9f83769a2ad0b4aeb8907b82b453ace6ebe9d..3ce014c766c47f3966d438032a6fa318c4f6ec61:/src/t_hash.c 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