projects
/
pgbouncer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86db130
)
Remove too early set of auth_user
author
Marko Kreen
<markokr@gmail.com>
Thu, 3 Sep 2015 12:21:24 +0000
(15:21 +0300)
committer
Marko 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
patch
|
blob
|
blame
|
history
diff --git
a/src/client.c
b/src/client.c
index 99615a0e3e4c13c161d14f79c39c0112a3574570..2b01ff2ccdb45089055fa35d22f79ffa17f4761e 100644
(file)
--- a/
src/client.c
+++ b/
src/client.c
@@
-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)) {