From cb4b65a840b65c0ffa4c2d93d9ec6e9b514f3bf7 Mon Sep 17 00:00:00 2001 From: Janos SUTO Date: Wed, 17 Oct 2018 06:56:50 +0000 Subject: [PATCH] Even more refactoring for rules.c Signed-off-by: Janos SUTO --- src/rules.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rules.c b/src/rules.c index 04a10238..3c31c14a 100644 --- a/src/rules.c +++ b/src/rules.c @@ -271,7 +271,7 @@ time_t query_retain_period(struct data *data, struct parser_state *state, int si if(p->domainlen > 2){ if(strcasestr(state->b_to_domain, p->domain) || strcasestr(state->b_from_domain, p->domain)){ state->retention = p->days; - return (time_t)p->days * (time_t)86400; + return (time_t)(state->retention) * (time_t)86400; } } else { @@ -305,7 +305,7 @@ time_t query_retain_period(struct data *data, struct parser_state *state, int si if(ismatch > 0){ state->retention = p->days; - return (time_t)p->days * (time_t)86400; + return (time_t)(state->retention) * (time_t)86400; } }