On Fri, Dec 23, 2005 at 10:54:17AM +0100, calmar wrote:
> lftp [EMAIL PROTECTED]:~> ls
> drwxr-xr-x   6 (?)      users         512 Oct 18 16:45 .
> ls: Fatal error: gnutls_record_recv: A TLS packet with
> unexpected length was received.

Please try this patch.

-- 
   Alexander.                      | http://www.yars.free.net/~lav/   
Index: lftp_ssl.cc
===================================================================
RCS file: /home/lav/cvsroot/lftp/src/lftp_ssl.cc,v
retrieving revision 1.25
diff -u -p -r1.25 lftp_ssl.cc
--- lftp_ssl.cc 22 Nov 2005 12:23:23 -0000      1.25
+++ lftp_ssl.cc 27 Dec 2005 08:42:21 -0000
@@ -541,6 +541,11 @@ int lftp_ssl_gnutls::read(char *buf,int 
    {
       if(res==GNUTLS_E_AGAIN || res==GNUTLS_E_INTERRUPTED)
         return RETRY;
+      else if(res==GNUTLS_E_UNEXPECTED_PACKET_LENGTH)
+      {
+        Log::global->Format(7,"gnutls_record_recv: %s; assuming 
EOF\n",gnutls_strerror(res));
+        return 0;
+      }
       else // error
       {
         fatal=check_fatal(res);

Reply via email to