aboutsummaryrefslogtreecommitdiffstats
path: root/src/spf.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2010-07-20 17:41:42 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2010-07-20 17:41:42 +0400
commit3fa94456e82ca03555173dc79091a4dc25947fd5 (patch)
treeb5d29421bba0c876ce08c1c318440646e1fa4818 /src/spf.c
parent18816c9485063d48a11b0536f299512924b49ab4 (diff)
downloadrspamd-3fa94456e82ca03555173dc79091a4dc25947fd5.tar.gz
rspamd-3fa94456e82ca03555173dc79091a4dc25947fd5.zip
* Handle empty from header
Diffstat (limited to 'src/spf.c')
-rw-r--r--src/spf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/spf.c b/src/spf.c
index 7a8de6746..ee8a4118f 100644
--- a/src/spf.c
+++ b/src/spf.c
@@ -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);