diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-04-06 18:03:49 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-04-06 18:03:49 +0100 |
commit | d6724d926dcbc2fd204f989c1b71b6a0cc52e02a (patch) | |
tree | de48a40a35cbcd6149dcd1e7dc6f2f57ec60b3c3 /src/libmime/message.c | |
parent | 680a2b66cbb66a52b72e18895236ccafe2791c84 (diff) | |
download | rspamd-d6724d926dcbc2fd204f989c1b71b6a0cc52e02a.tar.gz rspamd-d6724d926dcbc2fd204f989c1b71b6a0cc52e02a.zip |
Use new ac_trie for url extraction.
Diffstat (limited to 'src/libmime/message.c')
-rw-r--r-- | src/libmime/message.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libmime/message.c b/src/libmime/message.c index cbb2d8d31..b94d2fb19 100644 --- a/src/libmime/message.c +++ b/src/libmime/message.c @@ -1517,10 +1517,11 @@ process_message (struct rspamd_task *task) GMimePart *part; GMimeDataWrapper *wrapper; struct received_header *recv; - gchar *mid, *url_str, *p, *end, *url_end; + gchar *mid, *url_str; + const gchar *url_end, *p, *end; struct rspamd_url *subject_url; gsize len; - gint rc; + gint rc, state = 0; tmp = rspamd_mempool_alloc (task->task_pool, sizeof (GByteArray)); tmp->data = (guint8 *)task->msg.start; @@ -1708,7 +1709,7 @@ process_message (struct rspamd_task *task) while (p < end) { /* Search to the end of url */ if (rspamd_url_find (task->task_pool, p, end - p, NULL, &url_end, - &url_str, FALSE)) { + &url_str, FALSE, &state)) { if (url_str != NULL) { subject_url = rspamd_mempool_alloc0 (task->task_pool, sizeof (struct rspamd_url)); |