postgresql/src
Tom Lane aaf09c5923 Avoid masking EOF (no-password-supplied) conditions in auth.c.
CheckPWChallengeAuth() would return STATUS_ERROR if the user does not
exist or has no password assigned, even if the client disconnected
without responding to the password challenge (as libpq often will,
for example).  We should return STATUS_EOF in that case, and the
lower-level functions do, but this code level got it wrong since the
refactoring done in 7ac955b34.  This breaks the intent of not logging
anything for EOF cases (cf. comments in auth_failed()) and might
also confuse users of ClientAuthentication_hook.

Per report from Liu Lang.  Back-patch to all supported versions.

Discussion: https://postgr.es/m/b725238c-539d-cb09-2bff-b5e6cb2c069c@esgyn.cn
2024-01-03 17:40:41 -05:00
..
backend Avoid masking EOF (no-password-supplied) conditions in auth.c. 2024-01-03 17:40:41 -05:00
bin Make Perl warnings fatal in newly added TAP tests 2024-01-03 13:16:55 +01:00
common Make all Perl warnings fatal 2023-12-29 18:20:00 +01:00
fe_utils Remove unneeded assignments in for loop header 2023-11-21 16:10:27 +01:00
include Second attempt at organizing jsonpath operators and methods 2024-01-03 21:56:41 +01:00
interfaces Fix some typos 2024-01-03 14:22:54 +09:00
makefiles Remove distprep 2023-11-06 15:18:04 +01:00
pl Make all Perl warnings fatal 2023-12-29 18:20:00 +01:00
port Remove MSVC scripts 2023-12-20 09:44:37 +09:00
template Use unnamed POSIX semaphores on Cygwin. 2023-01-06 10:33:28 +13:00
test Remove unnecessary PGDATABASE settings from TAP tests 2024-01-03 10:28:05 +09:00
timezone Remove distprep 2023-11-06 15:18:04 +01:00
tools Fix some typos 2024-01-03 14:22:54 +09:00
tutorial Pre-beta mechanical code beautification. 2023-05-19 17:24:48 -04:00
.gitignore
DEVELOPERS
Makefile Remove distprep 2023-11-06 15:18:04 +01:00
Makefile.global.in Initialize data directories with --lc-messages=C for tests. 2023-12-21 15:10:13 -08:00
Makefile.shlib Stop using "-multiply_defined suppress" on macOS. 2023-09-26 21:06:21 -04:00
meson.build Integrate pg_bsd_indent into our build/test infrastructure. 2023-02-12 12:22:21 -05:00
nls-global.mk Remove distprep 2023-11-06 15:18:04 +01:00