# HG changeset patch # User masneyb # Date 1179537305 0 # Node ID 70b7e6663a057770a2d4a75ee4b3e2e68698e922 # Parent c127065adc0623dbecd9e4ce9a8bb672f5aa1061 2007-5-18 Brian Masney * lib/protocols.c (gftp_fd_read, gftp_fd_write) - moved FD_ZERO calls outside of the while loop. diff -r c127065adc06 -r 70b7e6663a05 ChangeLog --- 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 + * lib/protocols.c (gftp_fd_read, gftp_fd_write) - moved FD_ZERO calls + outside of the while loop. + 2007-5-4 Brian Masney * lib/protocols.c (_gftp_get_next_charset) - fixed problem when multiple character sets are specified in the remote_charsets variable. diff -r c127065adc06 -r 70b7e6663a05 lib/protocols.c --- 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;