aboutsummaryrefslogtreecommitdiffstats
path: root/src/anydb.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/anydb.c')
-rw-r--r--src/anydb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/anydb.c b/src/anydb.c
index bfd2c09..ef41af7 100644
--- a/src/anydb.c
+++ b/src/anydb.c
@@ -209,6 +209,8 @@ expired(
time_t expire,
time_t now
) {
+ if (expire < 0)
+ expire = -(expire + 1);
return expire && expire <= now;
}