diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-09-03 18:15:39 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-09-03 18:15:39 +0100 |
commit | 07101ccb966f6a3b27c421dfc98d9362a61012a9 (patch) | |
tree | 7937c0d1200095c2c849d2f315bcf96449d5f194 /src/plugins/dkim_check.c | |
parent | 6c0304dc20e59baf9fac84d6748912aac49cc06b (diff) | |
download | rspamd-07101ccb966f6a3b27c421dfc98d9362a61012a9.tar.gz rspamd-07101ccb966f6a3b27c421dfc98d9362a61012a9.zip |
Fix DKIM module (+memory leak)
Diffstat (limited to 'src/plugins/dkim_check.c')
-rw-r--r-- | src/plugins/dkim_check.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/plugins/dkim_check.c b/src/plugins/dkim_check.c index 3227902c3..376d292f3 100644 --- a/src/plugins/dkim_check.c +++ b/src/plugins/dkim_check.c @@ -360,10 +360,10 @@ dkim_symbol_callback (struct rspamd_task *task, void *unused) rspamd_dkim_context_t *ctx; rspamd_dkim_key_t *key; GError *err = NULL; + struct raw_header *rh; /* First check if a message has its signature */ - hlist = message_get_header (task->task_pool, - task->message, + hlist = message_get_header (task, DKIM_SIGNHEADER, FALSE); if (hlist != NULL) { @@ -388,7 +388,8 @@ dkim_symbol_callback (struct rspamd_task *task, void *unused) } } hlist = g_list_last (hlist); - ctx = rspamd_create_dkim_context (hlist->data, + rh = (struct raw_header *)hlist->data; + ctx = rspamd_create_dkim_context (rh->decoded, task->task_pool, dkim_module_ctx->time_jitter, &err); |