pgsql: libpq: Use strerror_r instead of strerror - Mailing list pgsql-committers

From Peter Eisentraut
Subject pgsql: libpq: Use strerror_r instead of strerror
Date
Msg-id E1sXzHU-001Zlb-Aj@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
libpq: Use strerror_r instead of strerror

Commit 453c4687377 introduced a use of strerror() into libpq, but that
is not thread-safe.  Fix by using strerror_r() instead.

In passing, update some of the code comments added by 453c4687377, as
we have learned more about the reason for the change in OpenSSL that
started this.

Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Discussion: Discussion: https://postgr.es/m/b6fb018b-f05c-4afd-abd3-318c649faf18@highgo.ca

Branch
------
REL_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/95e805e9cabeaf8bbf5b27e17763b44fbd85a686

Modified Files
--------------
src/backend/libpq/be-secure-openssl.c    |  9 +++++----
src/interfaces/libpq/fe-secure-openssl.c | 11 ++++++-----
2 files changed, 11 insertions(+), 9 deletions(-)


pgsql-committers by date:

Previous
From: Bruce Momjian
Date:
Subject: pgsql: doc PG 17 relnotes: add "()" to PQsocketPoll mention
Next
From: David Rowley
Date:
Subject: pgsql: Fix incorrect return value for pg_size_pretty(bigint)