On Wed, Aug 22, 2001 at 03:42:54AM +0200, Aragon Gouveia wrote:
> I'm running lftp 2.4.0 and am finding it to core dump quite often.

Please upgrade to 2.4.1 (or pre2.4.2-2), one bug leading to coredump
was fixed there. But you have reported a new one, thanks!

Here is the patch. I'll release 2.4.2 very soon.

Index: FtpListInfo.cc
===================================================================
RCS file: /home/lav/cvsroot/lftp/src/FtpListInfo.cc,v
retrieving revision 1.32
diff -u -r1.32 FtpListInfo.cc
--- FtpListInfo.cc      2001/07/14 10:43:35     1.32
+++ FtpListInfo.cc      2001/08/22 06:20:17
@@ -188,7 +188,12 @@
         return m;
       if(res==Ftp::IN_PROGRESS)
         return m;
-      assert(res==Ftp::OK);
+      if(res!=Ftp::OK)
+      {
+        SetError(session->StrError(res));
+        session->Close();
+        return MOVED;
+      }
       session->Close();

       for(cur=get_info; get_info_cnt-->0; cur++)

-- 
   Alexander.

Reply via email to