pgsql: Fix sslsni connparam boolean check

Поиск
Список
Период
Сортировка
От Daniel Gustafsson
Тема pgsql: Fix sslsni connparam boolean check
Дата
Msg-id E1mESm9-00018j-CH@gemulon.postgresql.org
обсуждение исходный текст
Список 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
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/512f4ca6c6b5d2e3a1620288048ccaa712121e12

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


В списке pgsql-committers по дате отправления:

Предыдущее
От: David Rowley
Дата:
Сообщение: pgsql: Fix incorrect hash table resizing code in simplehash.h
Следующее
От: Daniel Gustafsson
Дата:
Сообщение: pgsql: Fix sslsni connparam boolean check