diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-07-20 17:41:42 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-07-20 17:41:42 +0400 |
commit | 3fa94456e82ca03555173dc79091a4dc25947fd5 (patch) | |
tree | b5d29421bba0c876ce08c1c318440646e1fa4818 /src/spf.c | |
parent | 18816c9485063d48a11b0536f299512924b49ab4 (diff) | |
download | rspamd-3fa94456e82ca03555173dc79091a4dc25947fd5.tar.gz rspamd-3fa94456e82ca03555173dc79091a4dc25947fd5.zip |
* Handle empty from header
Diffstat (limited to 'src/spf.c')
-rw-r--r-- | src/spf.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1087,7 +1087,7 @@ resolve_spf (struct worker_task *task, spf_cb_t callback) rec->task = task; rec->callback = callback; - if (task->from && (domain = strchr (task->from, '@'))) { + if (task->from && (domain = strchr (task->from, '@')) != NULL && *domain == '@') { rec->sender = task->from; rec->local_part = memory_pool_strdup (task->task_pool, task->from); |