pgsql: libpq: Fix inadvertent change in PQhost() behavior.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: libpq: Fix inadvertent change in PQhost() behavior.
Date: 2016-12-01 20:17:23
Message-ID: E1cCXnH-0002ks-Dp@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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
failing.

Report by Andreas Karlsson; patch by me.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/11003eb55658df0caf183eef69c7a97d56a4f2d7

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

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2016-12-01 22:39:20 pgsql: Use grammar symbol function_with_argtypes consistently
Previous Message Alvaro Herrera 2016-12-01 16:49:25 Re: Re: [COMMITTERS] pgsql: Build HTML documentation using XSLT stylesheets by default