diff --git a/lftp-4.9.2-tls-close.patch b/lftp-4.9.2-tls-close.patch index 6ae7fab..38ce306 100644 --- a/lftp-4.9.2-tls-close.patch +++ b/lftp-4.9.2-tls-close.patch @@ -1,8 +1,8 @@ -commit 841fb0abfa8b84af5cb817a7b77006253e239aec +commit 6ad7c887da762079000b23d0a890ed7ad366330f Author: Tomas Korbar -Date: Mon May 5 13:08:54 2025 +0200 +Date: Thu Jun 26 10:08:07 2025 +0200 - Ensure proper closing of TLS connection + Ensure close-notify is sent on end of TLS connection diff --git a/src/buffer.cc b/src/buffer.cc index 9ee6580..e54e20e 100644 @@ -106,7 +106,7 @@ index d3cf7f0..8915066 100644 #endif diff --git a/src/lftp_ssl.cc b/src/lftp_ssl.cc -index 89421ee..2d8ef3d 100644 +index 89421ee..f83828d 100644 --- a/src/lftp_ssl.cc +++ b/src/lftp_ssl.cc @@ -48,6 +48,7 @@ lftp_ssl_base::lftp_ssl_base(int fd1,handshake_mode_t m,const char *h) @@ -129,7 +129,7 @@ index 89421ee..2d8ef3d 100644 - gnutls_bye(session,GNUTLS_SHUT_RDWR); // FIXME - E_AGAIN + int res; + if(handshake_done) { -+ res = gnutls_bye(session,GNUTLS_SHUT_RDWR); ++ res = gnutls_bye(session,GNUTLS_SHUT_WR); + if (res == GNUTLS_E_SUCCESS) { + goodbye_done = true; + return DONE; diff --git a/lftp.spec b/lftp.spec index 83c6e9f..346c72c 100644 --- a/lftp.spec +++ b/lftp.spec @@ -1,7 +1,7 @@ Summary: A sophisticated file transfer program Name: lftp Version: 4.9.2 -Release: 17%{?dist} +Release: 18%{?dist} License: GPL-3.0-or-later Source0: http://lftp.yar.ru/ftp/%{name}-%{version}.tar.xz URL: http://lftp.yar.ru/ @@ -100,6 +100,10 @@ rm -r $RPM_BUILD_ROOT%{_datadir}/lftp %{_datadir}/icons/hicolor/*/apps/* %changelog +* Thu Jun 26 2025 Tomas Korbar - 4.9.2-18 +- Improve fix for RHEL-91005 +- Resolves: RHEL-91005 + * Tue May 06 2025 Tomas Korbar - 4.9.2-17 - Ensure proper closing of TLS connection - Resolves: RHEL-91005