changeset 923:70b7e6663a05

2007-5-18 Brian Masney <masneyb@gftp.org> * lib/protocols.c (gftp_fd_read, gftp_fd_write) - moved FD_ZERO calls outside of the while loop.
author masneyb
date Sat, 19 May 2007 01:15:05 +0000
parents c127065adc06
children f37091406523
files ChangeLog lib/protocols.c
diffstat 2 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Fri May 04 11:25:10 2007 +0000
+++ b/ChangeLog	Sat May 19 01:15:05 2007 +0000
@@ -1,3 +1,7 @@
+2007-5-18 Brian Masney <masneyb@gftp.org>
+	* lib/protocols.c (gftp_fd_read, gftp_fd_write) - moved FD_ZERO calls
+	outside of the while loop.
+
 2007-5-4 Brian Masney <masneyb@gftp.org>
 	* lib/protocols.c (_gftp_get_next_charset) - fixed problem when multiple
 	character sets are specified in the remote_charsets variable.
--- a/lib/protocols.c	Fri May 04 11:25:10 2007 +0000
+++ b/lib/protocols.c	Sat May 19 01:15:05 2007 +0000
@@ -2780,10 +2780,10 @@
 
   errno = 0;
   ret = 0;
+  FD_ZERO (&fset);
 
   do
     {
-      FD_ZERO (&fset);
       FD_SET (fd, &fset);
       tv.tv_sec = network_timeout;
       tv.tv_usec = 0;
@@ -2858,9 +2858,10 @@
 
   errno = 0;
   ret = 0;
+  FD_ZERO (&fset);
+
   do
     {
-      FD_ZERO (&fset);
       FD_SET (fd, &fset);
       tv.tv_sec = network_timeout;
       tv.tv_usec = 0;