pgsql: libpq: If ALPN is not used, make PQsslAttribute(conn, "alpn") ==

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: libpq: If ALPN is not used, make PQsslAttribute(conn, "alpn") ==
Date: 2024-04-29 09:27:02
Message-ID: E1s1NHp-000bKr-BK@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

libpq: If ALPN is not used, make PQsslAttribute(conn, "alpn") == ""

The documentation says that PQsslAttribute(conn, "alpn") returns an
empty string if ALPN is not used, but the code actually returned
NULL. Fix the code to match the documentation.

Reported-by: Michael Paquier
Discussion: https://www.postgresql.org/message-id/ZideNHji0G4gxmc3@paquier.xyz

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/3c184092651b0b15ca1207c154ab3fd055e1e9fe

Modified Files
--------------
src/bin/psql/command.c | 2 +-
src/interfaces/libpq/fe-secure-openssl.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2024-04-29 12:12:00 pgsql: Make two-phase tests of ECPG and main suite more concurrent-proo
Previous Message Peter Eisentraut 2024-04-29 09:11:24 pgsql: Revert "Add GUC backtrace_on_internal_error"