]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Crash in URL processing 1779/head
authorAndrew Lewis <nerf@judo.za.org>
Mon, 31 Jul 2017 07:23:25 +0000 (09:23 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Mon, 31 Jul 2017 07:23:25 +0000 (09:23 +0200)
src/libserver/url.c

index 8e0cb52eecb1f50c5b7c00702f2eb2dba60b500a..35e704f67d364012d1a41e79d0c2227ac2613868 100644 (file)
@@ -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);