aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/user.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2020-11-01 11:26:16 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2020-11-01 11:26:52 -0500
commit29ae4cd82949843d09aa02a8125a5b5087201431 (patch)
tree1c2a2976b49015e5c1e5c2afdf8f877207027444 /src/backend/commands/user.c
parentaff06436caf844877f99d32346b076a480e582a7 (diff)
downloadpostgresql-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