bug-inetutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-inetutils] [BUG] ftpd


From: au
Subject: [bug-inetutils] [BUG] ftpd
Date: Fri, 29 Aug 2003 21:28:31 +0900

Hello

I found a bug.
if  "nm ftpd | sort -n" show:
  1001cba8 b bufs.135
  1001ce78 b ctrl_addr 
  1001ce88 b data_source
then ctrl_addr will be destroyed, and ftp client 
will get message like this:
    425 Can't create data socket (56.0.0.135,0): Cannot assign requested 
address.

    


diff  -u ftpd.c_org ftpd.c
--- ftpd.c_org  Wed Jun 26 12:15:05 2002
+++ ftpd.c      Fri Aug 29 21:15:41 2003
@@ -192,7 +192,7 @@
   static char bufs[NUM_SIMUL_OFF_TO_STRS][80];
   static char (*next_buf)[80] = bufs;

-  if (next_buf > (bufs+NUM_SIMUL_OFF_TO_STRS))
+  if (next_buf >= (bufs+NUM_SIMUL_OFF_TO_STRS))
     next_buf = bufs;

   if (sizeof (off) > sizeof (long))






reply via email to

[Prev in Thread] Current Thread [Next in Thread]