From 3582f7d259a7a27f21c0111fc7d852e41e0b5569 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 15 Jan 2016 14:09:40 +0000 Subject: [PATCH] Fix suffix/bits less URL BLs --- src/plugins/surbl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/surbl.c b/src/plugins/surbl.c index 683283dd2..480c40d4e 100644 --- a/src/plugins/surbl.c +++ b/src/plugins/surbl.c @@ -1128,7 +1128,8 @@ process_dns_results (struct rspamd_task *task, } } if (!got_result) { - if (!(suffix->bits || suffix->bits->len == 0) && suffix->ips == NULL) { + if ((suffix->bits == NULL || suffix->bits->len == 0) && + suffix->ips == NULL) { msg_info_task ("<%s> domain [%s] is in surbl %s", task->message_id, url, suffix->suffix); -- 2.39.5