From: Vsevolod Stakhov Date: Fri, 12 Jun 2015 17:57:00 +0000 (-0400) Subject: Fix dkim cache expiration. X-Git-Tag: 1.0.0~547 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=67ed140df3137965b2698d45b26a7271c06b574a;p=thirdparty%2Frspamd.git Fix dkim cache expiration. --- diff --git a/src/plugins/dkim_check.c b/src/plugins/dkim_check.c index 0cd1d554f2..50b2a4c213 100644 --- a/src/plugins/dkim_check.c +++ b/src/plugins/dkim_check.c @@ -401,7 +401,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 {