On Sat, Jul 14, 2012 at 12:21:10AM -0500, Glenn Maynard wrote: > On Tue, Jul 3, 2012 at 4:28 AM, Alexander V. Lukyanov <l...@netis.ru> wrote: > > > This patch should make this error non-fatal. > > > > Sorry, just got to testing this. > > I had to comment out the "&& temporary_network_error(errno)". errno is 0, > and temporary_network_error returns false.
I think this patch should help. errno is cleared before calling gnutls functions. -- Alexander.
diff --git a/src/lftp_ssl.cc b/src/lftp_ssl.cc index 11ee6e4..fab5b0f 100644 --- a/src/lftp_ssl.cc +++ b/src/lftp_ssl.cc @@ -501,7 +501,7 @@ bool lftp_ssl_gnutls::check_fatal(int res) if((res==GNUTLS_E_UNEXPECTED_PACKET_LENGTH || res==GNUTLS_E_PUSH_ERROR || res==GNUTLS_E_PULL_ERROR || res==GNUTLS_E_DECRYPTION_FAILED) - && temporary_network_error(errno)) + && (!errno || temporary_network_error(errno))) return false; return true; }
_______________________________________________ lftp mailing list lftp@uniyar.ac.ru http://univ.uniyar.ac.ru/mailman/listinfo/lftp