]> granicus.if.org Git - pgbouncer/commitdiff
Remove too early set of auth_user
authorMarko Kreen <markokr@gmail.com>
Thu, 3 Sep 2015 12:21:24 +0000 (15:21 +0300)
committerMarko Kreen <markokr@gmail.com>
Thu, 3 Sep 2015 12:25:48 +0000 (15:25 +0300)
When query returns 0 rows (user not found),
this user stays as login user...

Should fix #69.

src/client.c

index 99615a0e3e4c13c161d14f79c39c0112a3574570..2b01ff2ccdb45089055fa35d22f79ffa17f4761e 100644 (file)
@@ -83,7 +83,6 @@ static void start_auth_request(PgSocket *client, const char *username)
        int res;
        PktBuf *buf;
 
-       client->auth_user = client->db->auth_user;
        /* have to fetch user info from db */
        client->pool = get_pool(client->db, client->db->auth_user);
        if (!find_server(client)) {