]> granicus.if.org Git - postgresql/commit
Fix authentication so that it doesn't record an extra 'Password
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 18 Oct 2001 22:44:37 +0000 (22:44 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 18 Oct 2001 22:44:37 +0000 (22:44 +0000)
commitaed378e8d117bf58f6e04c7e97ed30b08db5055d
tree86d61b55bdd94549a7ab7be84b57b2efe05c987b
parent13e467f74fc34345aa850a3cf2d238906a5a6f3d
Fix authentication so that it doesn't record an extra 'Password
authentication failed' and a 'send() failed: Broken pipe' message
on every connection from psql in password auth mode.  Problem is
that psql doesn't ask user for a password until it sees a password
challenge failure, and libpq just closes the connection unceremoniously
if it's challenged for a password when it hasn't got one to send.
Accordingly, EOF from the client after asking for a password is
normal behavior and should not result in postmaster log entries.
src/backend/libpq/auth.c