pgsql: libpq: Fix SNI host handling
pgsql: libpq: Fix SNI host handling
От:
Peter Eisentraut <peter@eisentraut.org>
Дата:
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 Reviewed-by: Michael Paquier 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(-)