summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2010-11-03 17:32:12 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2010-11-03 17:32:12 +0300
commit7f2244a075396f152f9fb6711ffdb33e3e5125d3 (patch)
tree7103bcebaad0c5a20920407a1fdc45fd48706f17
parente3d3e31606aa9a6635af0434797fc2fe842a6a6a (diff)
downloadrspamd-0.3.3.tar.gz
rspamd-0.3.3.zip
Performance critical fix0.3.3
-rw-r--r--src/url.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/url.c b/src/url.c
index 3b96c083e..3edc0a7b1 100644
--- a/src/url.c
+++ b/src/url.c
@@ -1220,7 +1220,7 @@ url_try_text (memory_pool_t *pool, const gchar *begin, gsize len, gint *res, gch
*url_str = NULL;
}
if (res) {
- *res = strlen (matcher->pattern);
+ *res = (pos - begin) + strlen (matcher->pattern);
}
return TRUE;
}