diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2021-06-08 15:37:54 +0200 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2021-06-08 16:01:05 +0200 |
commit | 37e1cce4ddf0be362e3093cee55493aee41bc423 (patch) | |
tree | 1a012dc0d87164fd45faf5fbd0f2f8caff6b957b /contrib/postgres_fdw/postgres_fdw.c | |
parent | eab81953682d5087295afb911c93f36cb1533bd9 (diff) | |
download | postgresql-37e1cce4ddf0be362e3093cee55493aee41bc423.tar.gz postgresql-37e1cce4ddf0be362e3093cee55493aee41bc423.zip |
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
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.c')
0 files changed, 0 insertions, 0 deletions