pgsql: Clean up error message reported after \password encryption failu

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Clean up error message reported after \password encryption failu
Дата
Msg-id E1n7KYH-0002pd-1Q@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Clean up error message reported after \password encryption failure.

Experimenting with FIPS mode enabled, I saw

regression=# \password joe
Enter new password for user "joe":
Enter it again:
could not encrypt password: disabled for FIPS
out of memory

because PQencryptPasswordConn was still of the opinion that "out of
memory" is always appropriate to print.

Minor oversight in b69aba745.  Like that one, back-patch to v14.

Branch
------
REL_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/ab27df2490e3a5dfb8ecb3de66818d16645ef3dd

Modified Files
--------------
src/interfaces/libpq/fe-auth.c | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Fujii Masao
Дата:
Сообщение: pgsql: Enhance pg_log_backend_memory_contexts() for auxiliary processes
Следующее
От: John Naylor
Дата:
Сообщение: pgsql: Improve warning message in pg_signal_backend()