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 <[email protected]> Reviewed-by: Michael Paquier <[email protected]> Discussion: https://www.postgresql.org/message-id/[email protected] 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(-)
