Skip to content
Permalink
Browse files Browse the repository at this point in the history
Remove too early set of auth_user
When query returns 0 rows (user not found),
this user stays as login user...

Should fix #69.
  • Loading branch information
markokr committed Sep 3, 2015
1 parent 86db130 commit 7ca3e52
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/client.c
Expand Up @@ -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)) {
Expand Down

0 comments on commit 7ca3e52

Please sign in to comment.