From bc89b788fa5b3ed531ce3be38885b521f3d99474 Mon Sep 17 00:00:00 2001 From: Simon Arlott Date: Thu, 9 Jul 2020 20:53:00 +0100 Subject: [PATCH] authd: Don't reveal to users how many DNSBLs are configured --- authd/providers/dnsbl.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/authd/providers/dnsbl.c b/authd/providers/dnsbl.c index b8595a9a..db0a9440 100644 --- a/authd/providers/dnsbl.c +++ b/authd/providers/dnsbl.c @@ -264,8 +264,7 @@ dnsbl_dns_callback(const char *result, bool status, query_type type, void *data) if(!rb_dlink_list_length(&bluser->queries)) { /* Done here */ - notice_client(auth->cid, "*** No DNSBL entr%s found for this IP", - rb_dlink_list_length(&dnsbl_list) > 1 ? "ies" : "y"); + notice_client(auth->cid, "*** No DNSBL entry found for this IP"); rb_free(bluser); set_provider_data(auth, SELF_PID, NULL); set_provider_timeout_absolute(auth, SELF_PID, 0); @@ -317,8 +316,7 @@ lookup_all_dnsbls(struct auth_client *auth) return false; bluser->started = true; - notice_client(auth->cid, "*** Checking your IP against DNSBL%s", - rb_dlink_list_length(&dnsbl_list) > 1 ? "s" : ""); + notice_client(auth->cid, "*** Checking your IP against DNSBLs"); RB_DLINK_FOREACH(ptr, dnsbl_list.head) {