summaryrefslogtreecommitdiff
path: root/libftpconn/rmt.c
diff options
context:
space:
mode:
Diffstat (limited to 'libftpconn/rmt.c')
-rw-r--r--libftpconn/rmt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libftpconn/rmt.c b/libftpconn/rmt.c
index d7865672..33fdeaf7 100644
--- a/libftpconn/rmt.c
+++ b/libftpconn/rmt.c
@@ -66,7 +66,9 @@ ftp_conn_rmt_transfer (struct ftp_conn *src_conn,
ftp_conn_poss_file_errs);
if (err)
- ftp_conn_abort (src_conn);
+ /* Ftp servers seem to hang trying to abort at this point, so
+ just close the connection entirely. */
+ ftp_conn_close (src_conn);
else
err = ftp_conn_finish_transfer (src_conn);
}