Fix bogus behavior of PQsslAttribute(conn, "library").

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 80a05679d5a400b8f995740c175f8bdb060bb05c
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2022-09-29T21:28:09Z
Releases: 16.0
Fix bogus behavior of PQsslAttribute(conn, "library").

Commit ebc8b7d44 intended to change the behavior of
PQsslAttribute(NULL, "library"), but accidentally also changed
what happens with a non-NULL conn pointer.  Undo that so that
only the intended behavior change happens.  Clarify some
associated documentation.

Per bug #17625 from Heath Lord.  Back-patch to v15.

Discussion: https://postgr.es/m/17625-fc47c78b7d71b534@postgresql.org

Files

PathChange+/−
doc/src/sgml/libpq.sgml modified +22 −14
src/interfaces/libpq/fe-secure-openssl.c modified +10 −3

Documentation touched

Discussion