projects
/
pgbouncer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ce9970
)
Remove too early set of auth_user
author
Marko Kreen
<markokr@gmail.com>
Thu, 3 Sep 2015 12:19:41 +0000
(15:19 +0300)
committer
Marko Kreen
<markokr@gmail.com>
Thu, 3 Sep 2015 13:06:53 +0000
(16:06 +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 de92fdc5638e569a7064e721cee5893a87d12759..c6c9c5aef26cb0c1fde91b368e65cee4224801ee 100644
(file)
--- a/
src/client.c
+++ b/
src/client.c
@@
-95,7
+95,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)) {