diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2020-11-01 11:26:16 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2020-11-01 11:26:52 -0500 |
commit | 29ae4cd82949843d09aa02a8125a5b5087201431 (patch) | |
tree | 1c2a2976b49015e5c1e5c2afdf8f877207027444 /src/backend/commands/user.c | |
parent | aff06436caf844877f99d32346b076a480e582a7 (diff) | |
download | postgresql-29ae4cd82949843d09aa02a8125a5b5087201431.tar.gz postgresql-29ae4cd82949843d09aa02a8125a5b5087201431.zip |
Avoid null pointer dereference if error result lacks SQLSTATE.
Although error results received from the backend should always have
a SQLSTATE field, ones generated by libpq won't, making this code
vulnerable to a crash after, say, untimely loss of connection.
Noted by Coverity.
Oversight in commit 403a3d91c. Back-patch to 9.5, as that was.
Diffstat (limited to 'src/backend/commands/user.c')
0 files changed, 0 insertions, 0 deletions