Deallocate previously loaded SSL CONF module data
authorTomas Mraz <tmraz@fedoraproject.org>
Tue, 14 Aug 2018 21:43:36 +0000 (17:43 -0400)
committerRich Salz <rsalz@openssl.org>
Tue, 14 Aug 2018 21:43:36 +0000 (17:43 -0400)
commit60c526975aecba7e7aa229a92624498b36abf971
tree094575a698dd9087613fad2b547ce8367394197c
parentb1bebbcb67325593f8af247582208940a4cc0332
Deallocate previously loaded SSL CONF module data

If application explicitly calls CONF_modules_load_file() the SSL
conf module will be initialized twice and the module data would leak.
We need to free it before initializing it again.

Fixes #6835

Reviewed-by: Andy Polyakov <appro@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6948)
crypto/conf/conf_ssl.c