diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-10-06 17:00:49 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-10-06 17:00:49 +0400 |
commit | 2c7e49f97e737af5ac40bef8bf2b33fa9331736f (patch) | |
tree | 4c6efc5c9d21aa1720b5c8a014227f0dd72c3e06 /src/plugins | |
parent | d162849fae30115e87ce4f745208f55bd72a22cd (diff) | |
download | rspamd-2c7e49f97e737af5ac40bef8bf2b33fa9331736f.tar.gz rspamd-2c7e49f97e737af5ac40bef8bf2b33fa9331736f.zip |
Try to check spf domain before adding it to LRU hash.
Make libutil functions ported from BSD compatible with libbsd in linux.
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/spf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/spf.c b/src/plugins/spf.c index 5b4d7aa3a..4372f94b9 100644 --- a/src/plugins/spf.c +++ b/src/plugins/spf.c @@ -218,7 +218,7 @@ spf_plugin_callback (struct spf_record *record, struct worker_task *task) { GList *l; - if (record && record->addrs) { + if (record && record->addrs && record->sender_domain) { if ((l = rspamd_lru_hash_lookup (spf_module_ctx->spf_hash, record->sender_domain, task->tv.tv_sec)) == NULL) { l = spf_record_copy (record->addrs); |