aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/misc/injection_point.c
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2024-07-26 14:52:08 +0300
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2024-07-26 15:00:36 +0300
commitc95d2159c1dd3f269383a9bd830e1c804dba34c8 (patch)
tree90286f7ca3a4ccfe18ab96e4c9d6627f5420328d /src/backend/utils/misc/injection_point.c
parent284c030a10b838bb016e8c2de56ae9b845a6b30e (diff)
downloadpostgresql-c95d2159c1dd3f269383a9bd830e1c804dba34c8.tar.gz
postgresql-c95d2159c1dd3f269383a9bd830e1c804dba34c8.zip
Fix fallback behavior when server sends an ERROR early at startup
With sslmode=prefer, the desired behavior is to completely fail the connection attempt, *not* fall back to a plaintext connection, if the server responds to the SSLRequest with an error ('E') response instead of rejecting SSL with an 'N' response. This was broken in commit 05fd30c0e7. Reported-by: Jacob Champion Reviewed-by: Michael Paquier Discussion: https://www.postgresql.org/message-id/CAOYmi%2Bnwvu21mJ4DYKUa98HdfM_KZJi7B1MhyXtnsyOO-PB6Ww%40mail.gmail.com Backpatch-through: 17
Diffstat (limited to 'src/backend/utils/misc/injection_point.c')
0 files changed, 0 insertions, 0 deletions