diff --git a/lftp-4.9.2-tls-close.patch b/lftp-4.9.2-tls-close.patch index 65dad06..afa1aa9 100644 --- a/lftp-4.9.2-tls-close.patch +++ b/lftp-4.9.2-tls-close.patch @@ -1,8 +1,8 @@ -commit 4775ac63f00900ffd682b7e571f27baee5df8c61 +commit 68163723f05887acf86c82413d94481b57b53001 Author: Tomas Korbar -Date: Tue May 6 11:54:04 2025 +0200 +Date: Thu Jun 26 14:11:50 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 14a3b9d..40eb22f 100644 +index 14a3b9d..6986bd3 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 14a3b9d..40eb22f 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 de51d03..0d04377 100644 --- a/lftp.spec +++ b/lftp.spec @@ -1,7 +1,7 @@ Summary: A sophisticated file transfer program Name: lftp Version: 4.9.2 -Release: 5%{?dist} +Release: 6%{?dist} License: GPLv3+ Source0: http://lftp.yar.ru/ftp/%{name}-%{version}.tar.xz URL: http://lftp.yar.ru/ @@ -94,6 +94,10 @@ desktop-file-install \ %changelog +* Thu Jun 26 2025 Tomas Korbar - 4.9.2-6 +- Improve fix for close of TLS connection +- Resolves: RHEL-90997 + * Tue May 06 2025 Tomas Korbar - 4.9.2-5 - Ensure proper closing of TLS connection - Resolves: RHEL-90997