aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/transam/commit_ts.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:16 -0500
commit7f4235032f0d75ea1ad29b192d57fee3d8fe533e (patch)
treec7c8d6fa42d25479421ede9757763588a759c0cf /src/backend/access/transam/commit_ts.c
parentb17ff07aa3eb142d2cde2ea00e4a4e8f63686f96 (diff)
downloadpostgresql-7f4235032f0d75ea1ad29b192d57fee3d8fe533e.tar.gz
postgresql-7f4235032f0d75ea1ad29b192d57fee3d8fe533e.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/access/transam/commit_ts.c')
0 files changed, 0 insertions, 0 deletions