aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2011-02-25 20:26:22 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2011-02-25 20:26:22 +0300
commit2d18269774d7541f3690973d568187c7e45448e5 (patch)
tree6dd052e04c338b4990957d52d4623f4716632dda /src
parent0d5a051fd61762c4d64b8f5d02c25611f41be162 (diff)
downloadrspamd-2d18269774d7541f3690973d568187c7e45448e5.tar.gz
rspamd-2d18269774d7541f3690973d568187c7e45448e5.zip
Fix stupid bug in url parser.
Diffstat (limited to 'src')
-rw-r--r--src/html.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/html.c b/src/html.c
index 60c6eabd0..772f7d33b 100644
--- a/src/html.c
+++ b/src/html.c
@@ -801,7 +801,7 @@ parse_tag_url (struct worker_task *task, struct mime_text_part *part, tag_id_t i
if (part->html_urls && g_tree_lookup (part->html_urls, url_text) == NULL) {
g_tree_insert (part->html_urls, url_text, url);
}
- if (g_tree_lookup (task->urls, url)) {
+ if (g_tree_lookup (task->urls, url) == NULL) {
g_tree_insert (task->urls, url, url);
}
}