pgsql: Fix sslsni connparam boolean check

From: Daniel Gustafsson <dgustafsson(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix sslsni connparam boolean check
Date: 2021-08-13 08:42:51
Message-ID: E1mESmB-000197-4P@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix sslsni connparam boolean check

The check for sslsni only checked for existence of the parameter
but not for the actual value of the param. This meant that the
SNI extension was always turned on. Fix by inspecting the value
of sslsni and only activate the SNI extension iff sslsni has been
enabled. Also update the docs to be more in line with how other
boolean params are documented.

Backpatch to 14 where sslsni was first implemented.

Reviewed-by: Tom Lane
Backpatch-through: 14, where sslni was added

Branch
------
REL_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/ffff00a3556734f859f375b8c76c89f1d2920bcd

Modified Files
--------------
doc/src/sgml/libpq.sgml | 2 +-
src/interfaces/libpq/fe-secure-openssl.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Meskes 2021-08-13 08:46:31 pgsql: Fix connection handling for DEALLOCATE and DESCRIBE statements
Previous Message Daniel Gustafsson 2021-08-13 08:42:49 pgsql: Fix sslsni connparam boolean check