]> sjero.net Git - wget/blobdiff - src/ftp.c
[svn] Would incorrectly skip changing working directory when retrying after a
[wget] / src / ftp.c
index 9728c3394cfdc0257ae30884d73d80f498a52b0f..d122f4dc7173530105a408779eec4a8e27598c2b 100644 (file)
--- a/src/ftp.c
+++ b/src/ftp.c
@@ -1173,7 +1173,7 @@ ftp_loop_internal (struct url *u, struct fileinfo *f, ccon *con)
        len = 0;
       err = getftp (u, &len, restval, con);
 
-      if (con->csock != -1)
+      if (con->csock == -1)
        con->st &= ~DONE_CWD;
       else
        con->st |= DONE_CWD;