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:36 -0500 |
commit | d1ac060e63961fc6d5eadd27729ff29d5a52f9f1 (patch) | |
tree | 53f2dd4cfd654fa047a68560b59808630bdab04a /src/backend/executor/execParallel.c | |
parent | 0454666758209de2bdd96d5f0b9cf7aa055e4bda (diff) | |
download | postgresql-d1ac060e63961fc6d5eadd27729ff29d5a52f9f1.tar.gz postgresql-d1ac060e63961fc6d5eadd27729ff29d5a52f9f1.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/executor/execParallel.c')
0 files changed, 0 insertions, 0 deletions