aboutsummaryrefslogtreecommitdiffstats
path: root/src/spf.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-10-19 20:18:23 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-10-19 20:18:23 +0400
commitf2fa5e52e91742bcb3111f154ead19fa2f9cf830 (patch)
tree0600a9b689bd8e55b5ed921e2cfa49b2c186090c /src/spf.c
parent9564dbc14ddcc4a35d70cb7ee187a2f24752f6eb (diff)
downloadrspamd-f2fa5e52e91742bcb3111f154ead19fa2f9cf830.tar.gz
rspamd-f2fa5e52e91742bcb3111f154ead19fa2f9cf830.zip
* Add ability for scanning non-mime (HTML) messages
Diffstat (limited to 'src/spf.c')
-rw-r--r--src/spf.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/spf.c b/src/spf.c
index c72698bc1..97199009e 100644
--- a/src/spf.c
+++ b/src/spf.c
@@ -230,6 +230,11 @@ parse_spf_a (struct worker_task *task, const char *begin, struct spf_record *rec
int hostlen;
CHECK_REC (rec);
+
+ if (begin == NULL || *begin != ':') {
+ return FALSE;
+ }
+ begin ++;
bzero (mask_buf, sizeof (mask_buf));
p = strchr (begin, '/');