aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-07-31 08:29:10 +0100
committerGitHub <noreply@github.com>2017-07-31 08:29:10 +0100
commite87bb9314796804f5e8a45ce5ee8a4c45eb016ff (patch)
tree32edb1efe492dd512b4a7c1d44294629c8e88608 /src
parent438e7ed0627c1d0466391a92b6a262b6eba99880 (diff)
parent03dd4346d4c68d80b68d5593b1294f11468a63c3 (diff)
downloadrspamd-e87bb9314796804f5e8a45ce5ee8a4c45eb016ff.tar.gz
rspamd-e87bb9314796804f5e8a45ce5ee8a4c45eb016ff.zip
Merge pull request #1779 from fatalbanana/urls
[Fix] Crash in URL processing
Diffstat (limited to 'src')
-rw-r--r--src/libserver/url.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libserver/url.c b/src/libserver/url.c
index 8e0cb52ee..35e704f67 100644
--- a/src/libserver/url.c
+++ b/src/libserver/url.c
@@ -2546,7 +2546,7 @@ rspamd_url_task_subject_callback (struct rspamd_url *url, gsize start_offset,
" %*s", url_str, url->querylen, url->query);
if ((existing = g_hash_table_lookup (task->urls,
- query_url))) {
+ query_url)) == NULL) {
g_hash_table_insert (task->urls,
query_url,
query_url);