libpq: Fix inadvertent change in PQhost() behavior.

Commit 274bb2b3857cc987cfa21d14775cae9b0dababa5 caused PQhost() to
return the value of the hostaddr parameter rather than the relevant
host when the latter parameter was specified.  That's wrong.  Commit
9a1d0af4ad2cbd419115b453d811c141b80d872b then amplified the damage by
using PQhost() in more places, so that the SSL test suite started

Report by Andreas Karlsson; patch by me.



Modified Files
src/interfaces/libpq/fe-connect.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

Sent via pgsql-committers mailing list (
To make changes to your subscription:

Reply via email to