Clean up error message reported after \password encryption failure.
authorTom Lane
Tue, 11 Jan 2022 17:03:06 +0000 (12:03 -0500)
committerTom Lane
Tue, 11 Jan 2022 17:03:06 +0000 (12:03 -0500)
commitab27df2490e3a5dfb8ecb3de66818d16645ef3dd
treebcc41f9ad8d1c7adf3e496b4577a02e41ec9df97
parent3a0cced86d3b1bbbf0aaa0fb34e2b15edd643979
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.
src/interfaces/libpq/fe-auth.c