pgsql: Fix memory leak when rejecting bogus DH parameters.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Fix memory leak when rejecting bogus DH parameters.
Дата
Msg-id E1lNelj-0004ve-0E@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix memory leak when rejecting bogus DH parameters.

While back-patching e0e569e1d, I noted that there were some other
places where we ought to be applying DH_free(); namely, where we
load some DH parameters from a file and then reject them as not
being sufficiently secure.  While it seems really unlikely that
anybody would hit these code paths in production, let alone do
so repeatedly, let's fix it for consistency.

Back-patch to v10 where this code was introduced.

Discussion: https://postgr.es/m/16160-18367e56e9a28264@postgresql.org

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/8c830148d2d411da25272503b5456a66833d8e47

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


В списке pgsql-committers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix memory leak when rejecting bogus DH parameters.
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix up pg_dump's handling of per-attribute compression options.