summaryrefslogtreecommitdiff
path: root/src/ftp.c
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2021-03-05 10:08:14 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2021-03-05 10:08:14 +0900
commit374d0b57dade4c128ca5b7e51a4b1a91d4af13aa (patch)
tree35a91b2803ca4579f1f4f1098fa55279d928ad35 /src/ftp.c
parent61fb427c104d6f2334aaee9c7d90d8287d521b17 (diff)
downloadwget-374d0b57dade4c128ca5b7e51a4b1a91d4af13aa.tar.gz
wget-374d0b57dade4c128ca5b7e51a4b1a91d4af13aa.tar.bz2
wget-374d0b57dade4c128ca5b7e51a4b1a91d4af13aa.zip
Imported Upstream version 1.16.2upstream/1.16.2
Diffstat (limited to 'src/ftp.c')
-rw-r--r--src/ftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ftp.c b/src/ftp.c
index a3b2cb6..34c3858 100644
--- a/src/ftp.c
+++ b/src/ftp.c
@@ -1350,7 +1350,6 @@ Error in server response, closing control connection.\n"));
/* Get the server to tell us if everything is retrieved. */
err = ftp_response (csock, &respline);
- *last_expected_bytes = ftp_expected_bytes (respline);
if (err != FTPOK)
{
/* The control connection is decidedly closed. Print the time
@@ -1366,6 +1365,7 @@ Error in server response, closing control connection.\n"));
con->csock = -1;
return FTPRETRINT;
} /* err != FTPOK */
+ *last_expected_bytes = ftp_expected_bytes (respline);
/* If retrieval failed for any reason, return FTPRETRINT, but do not
close socket, since the control connection is still alive. If
there is something wrong with the control connection, it will