diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-10-19 20:18:23 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-10-19 20:18:23 +0400 |
commit | f2fa5e52e91742bcb3111f154ead19fa2f9cf830 (patch) | |
tree | 0600a9b689bd8e55b5ed921e2cfa49b2c186090c /src/spf.c | |
parent | 9564dbc14ddcc4a35d70cb7ee187a2f24752f6eb (diff) | |
download | rspamd-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.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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, '/'); |