diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-12-04 19:46:01 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-12-04 19:46:01 +0300 |
commit | 4639b204c25a13638bee42eceb4004e6ba0c67ec (patch) | |
tree | aaa6003dabd6a38b1d00a0ffdd13bf34514ca132 /src/map.c | |
parent | 2f551bd813a96567bac80aeaa186b706571b69f7 (diff) | |
download | rspamd-4639b204c25a13638bee42eceb4004e6ba0c67ec.tar.gz rspamd-4639b204c25a13638bee42eceb4004e6ba0c67ec.zip |
* Updates to spf system:
- add plugin to work with spf records (initial version)
- make all spf types working (except include and redirect that still need some attention)
- add support of MX records to evdns
- some major fixes and testing of the whole spf subsystem
Diffstat (limited to 'src/map.c')
-rw-r--r-- | src/map.c | 15 |
1 files changed, 13 insertions, 2 deletions
@@ -235,10 +235,21 @@ read_http_chunked (u_char * buf, size_t len, struct rspamd_map *map, struct http p = buf + (len - (data->chunk_read - data->chunk)); if (*p != '\r') { - msg_info ("read_http_chunked: invalid chunked reply"); - return FALSE; + if (*p == '0') { + return TRUE; + } + else { + msg_info ("read_http_chunked: invalid chunked reply: %*s", len, buf); + return FALSE; + } } p += 2; + if (len == p - buf) { + /* Next chunk data is not available */ + data->chunk = 0; + return TRUE; + } + len -= p - buf; skip = read_chunk_header (p, len, data); p += skip; |