diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-10-20 18:32:25 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-10-20 19:43:32 +0100 |
commit | f76b1582238a3ee7f45308f1df4f840c21b946a8 (patch) | |
tree | ade86728e44d37eadd73ac588936b88eda6f69a2 /src/plugins/dkim_check.c | |
parent | 251a7c9d11a676a58f22edb8afd09f20c69bd61f (diff) | |
download | rspamd-f76b1582238a3ee7f45308f1df4f840c21b946a8.tar.gz rspamd-f76b1582238a3ee7f45308f1df4f840c21b946a8.zip |
[Project] Adopt C modules and stuff
Diffstat (limited to 'src/plugins/dkim_check.c')
-rw-r--r-- | src/plugins/dkim_check.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/dkim_check.c b/src/plugins/dkim_check.c index 945b92e04..da42fe14f 100644 --- a/src/plugins/dkim_check.c +++ b/src/plugins/dkim_check.c @@ -86,7 +86,7 @@ struct dkim_check_result { gint res; gdouble mult_allow; gdouble mult_deny; - struct rspamd_async_watcher *w; + struct rspamd_symcache_item *item; struct dkim_check_result *next, *prev, *first; }; @@ -1029,7 +1029,8 @@ dkim_module_check (struct dkim_check_result *res) tracebuf); } } - rspamd_session_watcher_pop (res->task->s, res->w); + + rspamd_symcache_item_async_dec_check (res->task, res->item); } } @@ -1147,6 +1148,7 @@ dkim_symbol_callback (struct rspamd_task *task, cur->task = task; cur->mult_allow = 1.0; cur->mult_deny = 1.0; + cur->item = item; ctx = rspamd_create_dkim_context (rh->decoded, task->task_pool, @@ -1207,10 +1209,8 @@ dkim_symbol_callback (struct rspamd_task *task, res = cur; res->first = res; res->prev = res; - res->w = rspamd_session_get_watcher (task->s); } else { - cur->w = res->w; DL_APPEND (res, cur); } @@ -1232,7 +1232,7 @@ dkim_symbol_callback (struct rspamd_task *task, } if (res != NULL) { - rspamd_session_watcher_push (task->s); + rspamd_symcache_item_async_inc (task, item); dkim_module_check (res); } } |