diff --git a/src/auth/pool_auth.c b/src/auth/pool_auth.c index 12e6db6..c56506f 100644 --- a/src/auth/pool_auth.c +++ b/src/auth/pool_auth.c @@ -1095,7 +1095,7 @@ do_clear_text_password(POOL_CONNECTION * backend, POOL_CONNECTION * frontend, in kind = send_password_packet(backend, protoMajor, pwd); /* if authenticated, save info */ - if (!reauth && kind == AUTH_REQ_OK) + if (kind == AUTH_REQ_OK) { if (IS_MASTER_NODE_ID(backend->db_node_id)) { @@ -1238,7 +1238,7 @@ do_crypt(POOL_CONNECTION * backend, POOL_CONNECTION * frontend, int reauth, int pool_read(backend, &kind, sizeof(kind)); /* if authenticated, save info */ - if (!reauth && kind == 0) + if (kind == 0) { int msglen;