aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/html.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-04-14 13:11:28 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-04-14 13:11:28 +0100
commitfa43e3bfc7a4ca93b3ffcae730b6705bc402a2b5 (patch)
tree9333e5182c927238eaca79c615cb36d7d08d1888 /src/libserver/html.c
parentc4572edbf6d6bec6bb031479a9bcd0a3f1cd1bbe (diff)
downloadrspamd-fa43e3bfc7a4ca93b3ffcae730b6705bc402a2b5.tar.gz
rspamd-fa43e3bfc7a4ca93b3ffcae730b6705bc402a2b5.zip
Use hash table instead of tree for urls.
Diffstat (limited to 'src/libserver/html.c')
-rw-r--r--src/libserver/html.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libserver/html.c b/src/libserver/html.c
index 6ff4f4bae..563ac0825 100644
--- a/src/libserver/html.c
+++ b/src/libserver/html.c
@@ -892,14 +892,14 @@ parse_tag_url (struct rspamd_task *task,
}
if (url->protocol == PROTOCOL_MAILTO) {
if (url->userlen > 0) {
- if (!g_tree_lookup (task->emails, url)) {
- g_tree_insert (task->emails, url, url);
+ if (!g_hash_table_lookup (task->emails, url)) {
+ g_hash_table_insert (task->emails, url, url);
}
}
}
else {
- if (!g_tree_lookup (task->urls, url)) {
- g_tree_insert (task->urls, url, url);
+ if (!g_hash_table_lookup (task->urls, url)) {
+ g_hash_table_insert (task->urls, url, url);
}
}
}