lavv17 / lftp

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

lftp_ssl: deinitialize the lftp_ssl_openssl_instance #723

Open tabraham opened 10 months ago

tabraham commented 10 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