aboutsummaryrefslogtreecommitdiffstats
path: root/src/html.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2010-11-03 17:21:12 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2010-11-03 17:21:12 +0300
commite3d3e31606aa9a6635af0434797fc2fe842a6a6a (patch)
tree7965e393f965f85bdc79a87817826369714ad85b /src/html.c
parent1c7458522170627a9988a3472c1f7d19612d5feb (diff)
downloadrspamd-e3d3e31606aa9a6635af0434797fc2fe842a6a6a.tar.gz
rspamd-e3d3e31606aa9a6635af0434797fc2fe842a6a6a.zip
Urgent fixes.
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 8bbea9548..dee38a86b 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
len = strcspn (url_text, "<>");
- if (url_try_text (task->task_pool, url_text, len, &off, &url_str)) {
+ if (url_try_text (task->task_pool, url_text, len, &off, &url_str) && url_str != NULL) {
new = memory_pool_alloc0 (task->task_pool, sizeof (struct uri));
if (new != NULL) {
g_strstrip (url_str);