summaryrefslogtreecommitdiffstats
path: root/src/html.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2011-03-17 20:23:12 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2011-03-17 20:23:12 +0300
commit3127a72ffe055e85298fe16f1307f7e84105a2eb (patch)
tree8406bc7a141d0728148720e82af5f33a68a0e97a /src/html.c
parenta266ae53bb0197c2ce8c4f89a8f26fb46851a6bc (diff)
downloadrspamd-3127a72ffe055e85298fe16f1307f7e84105a2eb.tar.gz
rspamd-3127a72ffe055e85298fe16f1307f7e84105a2eb.zip
Fix error with parsing phishing urls.
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 74bdc29ac..31863ba9c 100644
--- a/src/html.c
+++ b/src/html.c
@@ -688,7 +688,7 @@ check_phishing (struct worker_task *task, struct uri *href_url, const gchar *url
gint off, rc;
p = url_text;
- while (len < remain - 1) {
+ while (len < remain) {
if (*p == '<' || *p == '>') {
break;
}