aboutsummaryrefslogtreecommitdiff
path: root/src/tutorial/funcs.source
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2020-04-01 14:45:57 +0900
committerMichael Paquier <michael@paquier.xyz>2020-04-01 14:45:57 +0900
commitf79bea4b6bcd2e5a801915a179bed2684168f89e (patch)
tree631257b13be77dc70294d47a5f49d2ad9b05e956 /src/tutorial/funcs.source
parent6a50f1af44631acdc3ed4e538ef477624ef7c539 (diff)
downloadpostgresql-f79bea4b6bcd2e5a801915a179bed2684168f89e.tar.gz
postgresql-f79bea4b6bcd2e5a801915a179bed2684168f89e.zip
Fix crash in psql when attempting to reuse old connection
In a psql session, if the connection to the server is abruptly cut, the referenced connection would become NULL as of CheckConnection(). This could cause a hard crash with psql if attempting to connect by reusing the past connection's data because of a null-pointer dereference with either PQhost() or PQdb(). This issue is fixed by making sure that no reuse of the past connection is done if it does not exist. Issue has been introduced by 6e5f8d4, so backpatch down to 12. Reported-by: Hugh Wang Author: Michael Paquier Reviewed-by: Álvaro Herrera, Tom Lane Discussion: https://postgr.es/m/16330-b34835d83619e25d@postgresql.org Backpatch-through: 12
Diffstat (limited to 'src/tutorial/funcs.source')
0 files changed, 0 insertions, 0 deletions