From: Marko Kreen Date: Thu, 20 Aug 2015 18:04:54 +0000 (+0300) Subject: Remove pointless cf_auth_type check X-Git-Tag: pgbouncer_1_7_rc1~19 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7996c8a11a04f06a48c8b0f3d9422ae02f24de67;p=pgbouncer Remove pointless cf_auth_type check --- diff --git a/src/client.c b/src/client.c index 7348e34..f5a383e 100644 --- a/src/client.c +++ b/src/client.c @@ -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))