Avoid core dump after getpwuid_r failure.

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

Commit: 2e62fa62d6745ba3bcb0a517d002aff1f3cdefb7
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2024-09-08T23:14:40Z
Releases: 18.0
Avoid core dump after getpwuid_r failure.

Looking up a nonexistent user ID would lead to a null pointer
dereference.  That's unlikely to happen here, but perhaps
not impossible.

Thinko in commit 4d5111b3f, noticed by Coverity.

Files

PathChange+/−
src/interfaces/libpq/fe-auth.c modified +3 −2