pgsql: libpq: Fix SNI host handling

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема pgsql: libpq: Fix SNI host handling
Дата
Msg-id E1lqcIZ-00033e-P0@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
libpq: Fix SNI host handling

Fix handling of NULL host name (possibly by using hostaddr).  It
previously crashed.  Also, we should look at connhost, not pghost, to
handle multi-host specifications.

Also remove an unnecessary SSL_CTX_free().

Reported-by: Jacob Champion <pchampion@vmware.com>
Reviewed-by: Michael Paquier <michael@paquier.xyz>
Discussion: https://www.postgresql.org/message-id/504c276ab6eee000bb23d571ea9b0ced4250774e.camel@vmware.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/37e1cce4ddf0be362e3093cee55493aee41bc423

Modified Files
--------------
src/interfaces/libpq/fe-secure-openssl.c | 26 +++++++++++++++-----------
1 file changed, 15 insertions(+), 11 deletions(-)


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: pgsql: Stabilize contrib/seg regression test.
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix contrib/seg regression test in v11.