authd: Don't reveal to users how many DNSBLs are configured

This commit is contained in:
Simon Arlott 2020-07-09 20:53:00 +01:00
parent e658268b22
commit bc89b788fa
No known key found for this signature in database
GPG key ID: DF001BFD83E75990

View file

@ -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)
{