summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libftpconn/unix.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libftpconn/unix.c b/libftpconn/unix.c
index 1737bff7..f72ae855 100644
--- a/libftpconn/unix.c
+++ b/libftpconn/unix.c
@@ -649,6 +649,8 @@ finished:
if (err && rd > 0)
ftp_conn_abort (conn);
+ else
+ err = ftp_conn_finish_transfer (conn);
return err;
}