]> source.dussan.org Git - rspamd.git/commitdiff
* Fix bug with infinite loops caused by outputting long urls
authorVsevolod Stakhov <vsevolod@rambler-co.ru>
Mon, 22 Jun 2009 12:51:07 +0000 (16:51 +0400)
committerVsevolod Stakhov <vsevolod@rambler-co.ru>
Mon, 22 Jun 2009 12:51:07 +0000 (16:51 +0400)
src/protocol.c

index ebfaa4df759fcaba8f12485a6fe868a1974b1f00..014a5fae39e819f592b9b68003d5a473bde20267 100644 (file)
@@ -405,6 +405,7 @@ show_url_header (struct worker_task *task)
                host.len = url->hostlen;
                /* Skip long hosts to avoid protocol coollisions */
                if (host.len > OUTBUFSIZ) {
+                       cur = g_list_next (cur);
                        continue;
                }
                /* Do header folding */