]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix comparision logic
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 26 Jun 2017 13:05:11 +0000 (14:05 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 26 Jun 2017 13:05:11 +0000 (14:05 +0100)
src/plugins/surbl.c

index 486b483884e43ba4fd31f7d41c97b424ec994b30..25fd8b9c562616493db710ec330b8428311cc719 100644 (file)
@@ -1379,7 +1379,7 @@ surbl_redirector_finish (struct rspamd_http_connection *conn,
                                        task->task_pool);
 
                        if (r == URI_ERRNO_OK) {
-                               if ((existing = g_hash_table_lookup (task->urls, redirected_url))) {
+                               if ((existing = g_hash_table_lookup (task->urls, redirected_url)) == NULL) {
                                        g_hash_table_insert (task->urls, redirected_url,
                                                        redirected_url);
                                        redirected_url->phished_url = param->url;