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:41 -0500 |
commit | dd7ae03f8c2a5dbadd4e7e1f288afcecfedbfb32 (patch) | |
tree | 2260e7ce6d72638c9054d8c374605cd8536b8d74 /src/backend/executor/nodeSubplan.c | |
parent | c39f4e81dc21406d610d0340a9a2e1d34c3372d3 (diff) |
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/executor/nodeSubplan.c')
0 files changed, 0 insertions, 0 deletions