aboutsummaryrefslogtreecommitdiffstats
path: root/src/html.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-07-03 20:17:10 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-07-03 20:17:10 +0400
commitcea1e53319b03839c0808eca1c41f2524723dbf4 (patch)
treef80887161152b27bb205777be7ba57f29f009af2 /src/html.c
parentc1fdf1e5a155e244a076bd33ed05a2a1c0f7f014 (diff)
downloadrspamd-cea1e53319b03839c0808eca1c41f2524723dbf4.tar.gz
rspamd-cea1e53319b03839c0808eca1c41f2524723dbf4.zip
* Check return value from evdns_resolve
* Do not parse html parts double time while extracting urls, just parse tags attributes
Diffstat (limited to 'src/html.c')
-rw-r--r--src/html.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/html.c b/src/html.c
index 6e7b683e9..8585f4062 100644
--- a/src/html.c
+++ b/src/html.c
@@ -328,7 +328,7 @@ parse_tag_url (struct worker_task *task, struct mime_text_part *part, tag_id_t i
if (len == 0 || g_ascii_strncasecmp (c, "http://", sizeof ("http://") - 1) != 0) {
return;
}
-
+
url_text = memory_pool_alloc (task->task_pool, len + 1);
g_strlcpy (url_text, c, len + 1);
url = memory_pool_alloc (task->task_pool, sizeof (struct uri));