aboutsummaryrefslogtreecommitdiffstats
path: root/src/map.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-12-04 19:46:01 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-12-04 19:46:01 +0300
commit4639b204c25a13638bee42eceb4004e6ba0c67ec (patch)
treeaaa6003dabd6a38b1d00a0ffdd13bf34514ca132 /src/map.c
parent2f551bd813a96567bac80aeaa186b706571b69f7 (diff)
downloadrspamd-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.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/map.c b/src/map.c
index 6a96728e3..31a0569d9 100644
--- a/src/map.c
+++ b/src/map.c
@@ -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;