From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix assorted error-cleanup bugs in SSL min/max protocol version
Date: Sun, 02 Feb 2020 18:09:41 +0000
Message-ID: <E1iyJgj-0000qu-Nb@gemulon.postgresql.org> (raw)
Fix assorted error-cleanup bugs in SSL min/max protocol version code.
The error exits added to initialize_SSL() failed to clean up the
partially-built SSL_context, and some of them also leaked the
result of SSLerrmessage(). Make them match other error-handling
cases in that function.
The error exits added to connectOptions2() failed to set conn->status
like every other error exit in that function.
In passing, make the SSL_get_peer_certificate() error exit look more
like all the other calls of SSLerrmessage().
Oversights in commit ff8ca5fad. Coverity whined about leakage of the
SSLerrmessage() results; I noted the rest in manual code review.
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/6148e2b9a6399b77e10e277c32d701b84703820f
Modified Files
--------------
src/interfaces/libpq/fe-connect.c | 3 +++
src/interfaces/libpq/fe-secure-openssl.c | 10 +++++++---
2 files changed, 10 insertions(+), 3 deletions(-)
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: tgl@sss.pgh.pa.us
Subject: Re: pgsql: Fix assorted error-cleanup bugs in SSL min/max protocol version
In-Reply-To: <E1iyJgj-0000qu-Nb@gemulon.postgresql.org>
References: <E1iyJgj-0000qu-Nb@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