]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix list op
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 5 Jul 2018 16:20:42 +0000 (17:20 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 5 Jul 2018 16:20:42 +0000 (17:20 +0100)
src/plugins/dkim_check.c

index 7a8fea27340042b84153f04d561cb7e96027cfaf..2ab2267370d840da701e3fc490dc27389e3e60bc 100644 (file)
@@ -1144,7 +1144,6 @@ dkim_symbol_callback (struct rspamd_task *task, void *unused)
                        }
                        else {
                                /* Get key */
-
                                cur->ctx = ctx;
 
                                if (dkim_module_ctx->trusted_only &&
@@ -1179,6 +1178,7 @@ dkim_symbol_callback (struct rspamd_task *task, void *unused)
 
                        if (res == NULL) {
                                res = cur;
+                               res->first = res;
                                res->prev = res;
                                res->w = rspamd_session_get_watcher (task->s);
                        }