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:47 -0500 |
commit | 1127377a578bde76ed09edd7cd5d8965365c8aaa (patch) | |
tree | 6c0654855de4099219aee4798cd99ee5c112028c /src/backend/commands/portalcmds.c | |
parent | 204d779695607eae5c6c0fa314516201b0af357f (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/commands/portalcmds.c')
0 files changed, 0 insertions, 0 deletions