From: Vsevolod Stakhov Date: Mon, 26 Jun 2017 13:05:11 +0000 (+0100) Subject: [Fix] Fix comparision logic X-Git-Tag: 1.6.2~71 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=146886df6d250a376b92d1bb615cb93679a7d6e8;p=rspamd.git [Fix] Fix comparision logic --- 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;