]> granicus.if.org Git - pgbouncer/commitdiff
Remove pointless cf_auth_type check
authorMarko Kreen <markokr@gmail.com>
Thu, 20 Aug 2015 18:04:54 +0000 (21:04 +0300)
committerMarko Kreen <markokr@gmail.com>
Thu, 20 Aug 2015 18:04:54 +0000 (21:04 +0300)
src/client.c

index 7348e34c7c1166273890bb570fd6bd9f89c5ce6a..f5a383ec8978353781a1a871e918f3b6e5579b2a 100644 (file)
@@ -565,12 +565,6 @@ static bool handle_client_startup(PgSocket *client, PktHdr *pkt)
                        return false;
                }
 
-               /* haven't requested it */
-               if (cf_auth_type <= AUTH_TRUST) {
-                       disconnect_client(client, true, "unrequested passwd pkt");
-                       return false;
-               }
-
                ok = mbuf_get_string(&pkt->data, &passwd);
                if (ok && check_client_passwd(client, passwd)) {
                        if (!finish_client_login(client))