]> source.dussan.org Git - rspamd.git/commitdiff
Fix dkim cache expiration.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 12 Jun 2015 17:57:00 +0000 (13:57 -0400)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 12 Jun 2015 17:57:00 +0000 (13:57 -0400)
src/plugins/dkim_check.c

index 0cd1d554f21b45d3af3dfb7c13c7a6cc8a0f2648..50b2a4c2133dc363c22d7a3d54c44aa98de0db77 100644 (file)
@@ -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 {