Avoid core dump after getpwuid_r failure.
Tom Lane <tgl@sss.pgh.pa.us>
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
| Path | Change | +/− |
|---|---|---|
| src/interfaces/libpq/fe-auth.c | modified | +3 −2 |