diff --git a/redis.c b/redis.c index db46763b..4264b7e2 100644 --- a/redis.c +++ b/redis.c @@ -7072,7 +7072,7 @@ static void expireGenericCommand(redisClient *c, robj *key, robj *param, long of addReply(c,shared.czero); return; } - if (seconds < 0) { + if (seconds <= 0) { if (deleteKey(c->db,key)) server.dirty++; addReply(c, shared.cone); return;