Does this patch fix the problem?

--
   Alexander.
Index: buffer_ssl.cc
===================================================================
RCS file: /home/lav/cvsroot/lftp/src/buffer_ssl.cc,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -p -r1.8 -r1.9
--- buffer_ssl.cc       28 Sep 2005 04:37:44 -0000      1.8
+++ buffer_ssl.cc       25 Oct 2005 13:53:49 -0000      1.9
@@ -52,6 +52,8 @@ int IOBufferSSL::Do()
       break;
 
    case GET:
+      if(eof)
+        return STALL;
       res=Get_LL(GET_BUFSIZE);
       if(res>0)
       {
Index: buffer.cc
===================================================================
RCS file: /home/lav/cvsroot/lftp/src/buffer.cc,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -p -r1.49 -r1.50
--- buffer.cc   22 Jun 2005 08:04:21 -0000      1.49
+++ buffer.cc   25 Oct 2005 13:53:48 -0000      1.50
@@ -385,6 +385,8 @@ int IOBuffer::Do()
       break;
 
    case GET:
+      if(eof)
+        return STALL;
       res=Get_LL(GET_BUFSIZE);
       if(res>0)
       {
@@ -443,6 +445,8 @@ int IOBufferStacked::Do()
 
    case GET:
       m|=down->Do();
+      if(eof)
+        return m;
       res=Get_LL(GET_BUFSIZE);
       if(res>0)
       {

Reply via email to