diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-03-02 01:39:40 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-03-02 01:39:40 +0300 |
commit | de7c8a550a1bbc862c50187d66defcc87f0dece3 (patch) | |
tree | 701b42f21236b6e4c32f8100a00a7ab52c92ba82 /src/protocol.c | |
parent | 080af17704e6aee865b416862575308352d6dcee (diff) | |
download | rspamd-de7c8a550a1bbc862c50187d66defcc87f0dece3.tar.gz rspamd-de7c8a550a1bbc862c50187d66defcc87f0dece3.zip |
* Add debug for mime parsing
* Fill task structure with zeroes in url-extracter
Diffstat (limited to 'src/protocol.c')
-rw-r--r-- | src/protocol.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/protocol.c b/src/protocol.c index 28b9b8251..9999dc279 100644 --- a/src/protocol.c +++ b/src/protocol.c @@ -332,12 +332,14 @@ show_url_header (struct worker_task *task) if (TAILQ_NEXT (url, next) != NULL) { c = *(host.begin + host.len); *(host.begin + host.len) = '\0'; + msg_debug ("show_url_header: write url: %s", host.begin); r += snprintf (outbuf + r, sizeof (outbuf) - r, "%s, ", host.begin); *(host.begin + host.len) = c; } else { c = *(host.begin + host.len); *(host.begin + host.len) = '\0'; + msg_debug ("show_url_header: write url: %s", host.begin); r += snprintf (outbuf + r, sizeof (outbuf) - r, "%s" CRLF, host.begin); *(host.begin + host.len) = c; } |