postgresql/src/backend
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
..
access gist: fix typo "split(t)ed" -> "split" 2024-01-02 12:24:28 -05:00
archive Redesign archive modules 2023-02-17 14:26:42 +09:00
backup Fix defects in PrepareForIncrementalBackup. 2024-01-03 09:59:46 -05:00
bootstrap Remove distprep 2023-11-06 15:18:04 +01:00
catalog Minor fixes for search path cache code. 2024-01-02 14:57:21 -05:00
commands Refactor: separate function to find all objects depending on a column 2024-01-03 08:50:37 +01:00
executor Fix typos in comments and in one isolation test. 2024-01-02 12:05:41 -05:00
foreign Improve "user mapping not found" error message 2023-11-30 05:34:28 +01:00
jit Make ResourceOwners more easily extensible. 2023-11-08 13:30:50 +02:00
lib Make binaryheap available to frontend code. 2023-09-18 12:18:33 -07:00
libpq Avoid masking EOF (no-password-supplied) conditions in auth.c. 2024-01-03 17:40:41 -05:00
main Remove obsolete defense against strxfrm() bugs. 2023-04-20 13:20:14 +12:00
nodes Make all Perl warnings fatal 2023-12-29 18:20:00 +01:00
optimizer Fix typos in comments and in one isolation test. 2024-01-02 12:05:41 -05:00
parser Make all Perl warnings fatal 2023-12-29 18:20:00 +01:00
partitioning Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
po Translation updates 2023-08-07 12:39:30 +02:00
port Remove distprep 2023-11-06 15:18:04 +01:00
postmaster Don't send "cannot connect" errors on invalid startup packet 2023-12-30 22:18:54 +02:00
regex Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
replication Fix incorrect format placeholders 2023-12-27 17:39:10 +01:00
rewrite Add TupleDescGetDefault() 2023-09-27 18:52:40 +01:00
snowball Make all Perl warnings fatal 2023-12-29 18:20:00 +01:00
statistics Retire MemoryContextResetAndDeleteChildren() macro. 2023-11-15 13:42:30 -06:00
storage Make all Perl warnings fatal 2023-12-29 18:20:00 +01:00
tcop Add support for REINDEX in event triggers 2023-12-04 09:53:49 +09:00
tsearch Limit to_tsvector_byid's initial array allocation to something sane. 2023-09-25 11:50:28 -04:00
utils Second attempt at organizing jsonpath operators and methods 2024-01-03 21:56:41 +01:00
.gitignore
Makefile Remove distprep 2023-11-06 15:18:04 +01:00
common.mk Blind attempt to fix LLVM dependency in the backend 2022-09-15 10:53:48 +07:00
meson.build Remove MSVC scripts 2023-12-20 09:44:37 +09:00
nls.mk Remove distprep 2023-11-06 15:18:04 +01:00