From f5a2144cb5eba22ff657ea5e1d6303dab9010332 Mon Sep 17 00:00:00 2001 From: SJ Date: Sun, 29 Mar 2015 09:55:29 +0200 Subject: [PATCH] prevent too future dates --- src/parser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/parser.c b/src/parser.c index 149ac010..a4af26e9 100644 --- a/src/parser.c +++ b/src/parser.c @@ -387,8 +387,8 @@ int parse_line(char *buf, struct _state *state, struct session_data *sdata, int else { sdata->sent = parse_date_header(buf, cfg); - /* allow +/-1 week drift in the parsed Date: value */ - if(sdata->now - sdata->sent > 604800 || sdata->sent - sdata->now > 604800) sdata->sent = sdata->now; + /* allow -1 week ... +1 day drift in the parsed Date: value */ + if(sdata->now - sdata->sent > 604800 || sdata->sent - sdata->now > 86400) sdata->sent = sdata->now; } }