]> jfr.im git - irc/freenode/solanum.git/commitdiff
authd: Don't reveal to users how many DNSBLs are configured
authorSimon Arlott <sa.me.uk>
Thu, 9 Jul 2020 19:53:00 +0000 (20:53 +0100)
committerSimon Arlott <sa.me.uk>
Thu, 9 Jul 2020 19:53:00 +0000 (20:53 +0100)
authd/providers/dnsbl.c

index b8595a9a26afee3cfeadad1c0433260f4f933275..db0a94403866390a4af6c4b3c996a0bee9f8ba95 100644 (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)
        {