aboutsummaryrefslogtreecommitdiffstats
path: root/src/protocol.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-03-02 01:39:40 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-03-02 01:39:40 +0300
commitde7c8a550a1bbc862c50187d66defcc87f0dece3 (patch)
tree701b42f21236b6e4c32f8100a00a7ab52c92ba82 /src/protocol.c
parent080af17704e6aee865b416862575308352d6dcee (diff)
downloadrspamd-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.c2
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;
}