commit 05cbd5a: [Fix] SURBL: Fix regression in surbl module

Vsevolod Stakhov vsevolod at highsecure.ru
Wed Mar 13 09:14:04 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-03-13 09:07:37 +0000
URL: https://github.com/rspamd/rspamd/commit/05cbd5a1b9dfa972460e2724faea63594add750f (HEAD -> master)

[Fix] SURBL: Fix regression in surbl module

---
 src/plugins/surbl.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/plugins/surbl.c b/src/plugins/surbl.c
index e5080b864..316ca7f62 100644
--- a/src/plugins/surbl.c
+++ b/src/plugins/surbl.c
@@ -1362,10 +1362,8 @@ format_surbl_request (rspamd_mempool_t * pool,
 		}
 	}
 
-	if (url->surbl == NULL) {
-		url->surbl = result;
-		url->surbllen = r;
-	}
+	url->surbl = result;
+	url->surbllen = r;
 
 	if (!forced &&
 			rspamd_match_hash_map (surbl_module_ctx->whitelist, result) != NULL) {


More information about the Commits mailing list