On Sun, Sep 12, 2004 at 11:30:00PM +0200, Nadeem Gulzar wrote:
> I finally made gdb work correctly
> 
> Here is the ouput you requested:

Thanks! Here is the patch to fix the problem.

-- 
   Alexander.                      | software is knowlege  
Index: ftpclass.cc
===================================================================
RCS file: /home/lav/cvsroot/lftp/src/ftpclass.cc,v
retrieving revision 1.335
diff -u -p -r1.335 ftpclass.cc
--- ftpclass.cc 3 Aug 2004 11:34:40 -0000       1.335
+++ ftpclass.cc 13 Sep 2004 12:55:33 -0000
@@ -2834,6 +2834,7 @@ void  Ftp::DisconnectNow()
       if(mode==STORE && (flags&IO_FLAG))
         SetError(STORE_FAILED,0);
    }
+   copy_addr_valid=false;
 }
 
 void  Ftp::Disconnect()
Index: ftpclass.h
===================================================================
RCS file: /home/lav/cvsroot/lftp/src/ftpclass.h,v
retrieving revision 1.121
diff -u -p -r1.121 ftpclass.h
--- ftpclass.h  26 May 2004 12:31:43 -0000      1.121
+++ ftpclass.h  13 Sep 2004 12:54:57 -0000
@@ -508,6 +508,8 @@ public:
    bool CopyStoreAllowed() { return copy_allow_store; }
    bool CopyIsReadyForStore()
       {
+        if(!expect)
+           return false;
         if(copy_mode==COPY_SOURCE)
            return copy_addr_valid && expect->FirstIs(Expect::TRANSFER);
         return state==WAITING_STATE && expect->IsEmpty();

Reply via email to