aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-01-15 14:09:40 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-01-15 14:09:40 +0000
commit3582f7d259a7a27f21c0111fc7d852e41e0b5569 (patch)
tree4c2465386d0961ac6508805935bfac7d000aa330 /src/plugins
parentf538b2bb5d6633b1f723913a766b1244693df186 (diff)
downloadrspamd-3582f7d259a7a27f21c0111fc7d852e41e0b5569.tar.gz
rspamd-3582f7d259a7a27f21c0111fc7d852e41e0b5569.zip
Fix suffix/bits less URL BLs
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/surbl.c3
1 files changed, 2 insertions, 1 deletions
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);