pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <heikki.linnakangas@iki.fi>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: libpq: If ALPN is not used, make PQsslAttribute(conn, "alpn") ==
Date: Mon, 29 Apr 2024 09:27:02 +0000
Message-ID: <E1s1NHp-000bKr-BK@gemulon.postgresql.org> (raw)

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(-)



view thread (2+ messages)

Message-ID: <E1s1NHp-000bKr-BK@gemulon.postgresql.org>
Permalink:  ../E1s1NHp-000bKr-BK@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1s1NHp-000bKr-BK@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: heikki.linnakangas@iki.fi, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: libpq: If ALPN is not used, make PQsslAttribute(conn, "alpn") ==
  In-Reply-To: <E1s1NHp-000bKr-BK@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox