From 2182188ba963d5ee9345696932c479d2c9076fea Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 12 Jun 2015 13:57:00 -0400 Subject: [PATCH] Fix dkim cache expiration. --- src/plugins/dkim_check.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/dkim_check.c b/src/plugins/dkim_check.c index 9e88ab310..8c43ea5e8 100644 --- a/src/plugins/dkim_check.c +++ b/src/plugins/dkim_check.c @@ -394,7 +394,7 @@ dkim_module_key_handler (rspamd_dkim_key_t *key, /* Add new key to the lru cache */ rspamd_lru_hash_insert (dkim_module_ctx->dkim_hash, g_strdup (ctx->dns_key), - key, res->task->time_real, key->ttl); + key, res->task->tv.tv_sec, key->ttl); res->key = key; } else { -- 2.39.5