pgsql: Clear SSL_hosts when destroying TLS - Mailing list pgsql-committers

From Daniel Gustafsson
Subject pgsql: Clear SSL_hosts when destroying TLS
Date
Msg-id E1xE3ii-00000000Y1Q-1SYY@gemulon.postgresql.org
Whole thread
List pgsql-committers
Clear SSL_hosts when destroying TLS

The loaded SSL_CTX objects were cleared on SSL initialization but not
when destroying the TLS objects via be_tls_destroy().  This would not
leak the contexts, but consume memory for no reason.

Reported-by: Jacob Champion <jacob.champion@enterprisedb.com>
Reviewed-by: Zsolt Parragi <zsolt.parragi@percona.com>
Reviewed-by: Rui Zhao <zhaorui126@gmail.com>
Discussion: https://postgr.es/m/CAOYmi+mAtEn4wN3xx=r4TaY5AHy9_q9XncM8YQLhofE3op0SvA@mail.gmail.com
Backpatch-through: 19

Branch
------
REL_19_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/d45dc682e81b2ff5a9f57129b3fa25fb2de5f195

Modified Files
--------------
src/backend/libpq/be-secure-openssl.c | 7 +++++++
1 file changed, 7 insertions(+)


pgsql-committers by date:

Previous
From: Daniel Gustafsson
Date:
Subject: pgsql: Keep current ssl_sni setting on SSL config reload failure
Next
From: Nathan Bossart
Date:
Subject: pgsql: Fix COPY FROM ... WHERE for negated operators.