aboutsummaryrefslogtreecommitdiff
path: root/src/tutorial
diff options
context:
space:
mode:
authorStephen Frost <sfrost@snowman.net>2020-05-02 11:39:26 -0400
committerStephen Frost <sfrost@snowman.net>2020-05-02 11:39:26 -0400
commitb68a560f8ebfc7eed679d09facdce5512a38c9c2 (patch)
tree035a3dba558caad9925ad62ccf9d84e24da2cdb4 /src/tutorial
parentd5d09692ea6b96944d24c44db1451f085b64ba09 (diff)
downloadpostgresql-b68a560f8ebfc7eed679d09facdce5512a38c9c2.tar.gz
postgresql-b68a560f8ebfc7eed679d09facdce5512a38c9c2.zip
Fix GSS client to non-GSS server connection
If the client is compiled with GSSAPI support and tries to start up GSS with the server, but the server is not compiled with GSSAPI support, we would mistakenly end up falling through to call ProcessStartupPacket with secure_done = true, but the client might then try to perform SSL, which the backend wouldn't understand and we'd end up failing the connection with: FATAL: unsupported frontend protocol 1234.5679: server supports 2.0 to 3.0 Fix by arranging to track ssl_done independently from gss_done, instead of trying to use the same boolean for both. Author: Andrew Gierth Discussion: https://postgr.es/m/87h82kzwqn.fsf@news-spur.riddles.org.uk Backpatch: 12-, where GSSAPI encryption was added.
Diffstat (limited to 'src/tutorial')
0 files changed, 0 insertions, 0 deletions