diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-07-07 15:02:56 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-07-07 15:02:56 +0100 |
commit | 754a89fb2d7c543ae4079ccd4eb936808b5a6494 (patch) | |
tree | 120c29b18012b43db8bc758196e34443cfca60f9 /src/plugins/dkim_check.c | |
parent | 67bca2f59cb0afeaf212fb82289f2b482f72a756 (diff) | |
download | rspamd-754a89fb2d7c543ae4079ccd4eb936808b5a6494.tar.gz rspamd-754a89fb2d7c543ae4079ccd4eb936808b5a6494.zip |
[Fix] Another refcount fix
Diffstat (limited to 'src/plugins/dkim_check.c')
-rw-r--r-- | src/plugins/dkim_check.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/dkim_check.c b/src/plugins/dkim_check.c index b405afed0..c3503e7aa 100644 --- a/src/plugins/dkim_check.c +++ b/src/plugins/dkim_check.c @@ -782,10 +782,10 @@ dkim_sign_callback (struct rspamd_task *task, void *unused) hdr = rspamd_dkim_sign (task, selector, domain, 0, 0, ctx); - rspamd_mempool_set_variable (task->task_pool, "dkim-signature", - hdr, rspamd_gstring_free_hard); - - rspamd_dkim_sign_key_unref (dkim_key); + if (hdr) { + rspamd_mempool_set_variable (task->task_pool, "dkim-signature", + hdr, rspamd_gstring_free_hard); + } } else { sign = FALSE; |