lavv17 / lftp

sophisticated command line file transfer program (ftp, http, sftp, fish, torrent)
http://lftp.yar.ru
GNU General Public License v3.0
1.08k stars 159 forks source link

lftp_ssl: deinitialize the lftp_ssl_openssl_instance #723

Open tabraham opened 5 months ago

tabraham commented 5 months ago

If the instance isn't deinitialized prior to exit, the OPENSSL_cleanup exit handler may run before the lftp_ssl_openssl_instance destructor on exit resulting in a segfault.

This fixes a null deref on exit.

Fixes #716