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:31 -0500 |
commit | 7d72fd9e6db686c9a499d4238d23525437adc132 (patch) | |
tree | ac53b6a094d502e153dbd3a67ca702d6b8977ba3 /src/backend/storage/buffer/bufmgr.c | |
parent | 41a033b5054e047cc67a92e17fbbe4accb658b3b (diff) | |
download | postgresql-7d72fd9e6db686c9a499d4238d23525437adc132.tar.gz postgresql-7d72fd9e6db686c9a499d4238d23525437adc132.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/storage/buffer/bufmgr.c')
0 files changed, 0 insertions, 0 deletions