From 146886df6d250a376b92d1bb615cb93679a7d6e8 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 26 Jun 2017 14:05:11 +0100 Subject: [PATCH] [Fix] Fix comparision logic --- src/plugins/surbl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/surbl.c b/src/plugins/surbl.c index 486b48388..25fd8b9c5 100644 --- a/src/plugins/surbl.c +++ b/src/plugins/surbl.c @@ -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; -- 2.39.5