From: Vsevolod Stakhov Date: Fri, 12 Jun 2015 17:57:00 +0000 (-0400) Subject: Fix dkim cache expiration. X-Git-Tag: 0.9.6~16 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2182188ba963d5ee9345696932c479d2c9076fea;p=rspamd.git Fix dkim cache expiration. --- 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 {