Clean up error message reported after \password encryption failure.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: ab27df2490e3a5dfb8ecb3de66818d16645ef3dd
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2022-01-11T17:03:06Z
Releases: 14.2
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.

Files

PathChange+/−
src/interfaces/libpq/fe-auth.c modified +7 −4