]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Crash in URL processing
authorAndrew Lewis <nerf@judo.za.org>
Mon, 31 Jul 2017 07:23:25 +0000 (09:23 +0200)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 6 Sep 2017 17:55:09 +0000 (18:55 +0100)
src/libserver/url.c

index da7583596bddcfd5e03e2bfb5e644e04879aa6f8..918f7eee33965ac7c49298dcf67b3e2e67a9e3b4 100644 (file)
@@ -2582,7 +2582,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);