]> sjero.net Git - wget/blobdiff - src/ftp.c
[svn] Applied John Daily <jdaily@cyberdude.com>'s patch for his "quad" commands ...
[wget] / src / ftp.c
index 1f65c254dd4b6bd804a36e52e7bd339f281ab009..bfb4e0284d6f2a4d9f605bb1369bd47ac6c71f65 100644 (file)
--- a/src/ftp.c
+++ b/src/ftp.c
@@ -337,7 +337,7 @@ Error in server response, closing control connection.\n"));
   /* If anything is to be retrieved, PORT (or PASV) must be sent.  */
   if (cmd & (DO_LIST | DO_RETR))
     {
-      if (opt.ftp_pasv)
+      if (opt.ftp_pasv > 0)
        {
          char thost[256];
          unsigned short tport;