]> 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:26 +0000 (13:57 -0400)
src/plugins/dkim_check.c

index 9e88ab3100c263b4dc612f414cc3a272af4675fc..8c43ea5e8e763fa57f4c29bf7fc6bda11a63bb19 100644 (file)
@@ -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 {