From 98678b4cfed68ff22f828d3da128e63ae0fd0a2a Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Mon, 12 May 1997 15:48:14 +0000 Subject: (ftp_conn_abort): Use ftp_conn_get_raw_reply instead of ftp_conn_get_reply. Accept REPLY_ABORT_OK as a final reply. Include . --- libftpconn/cmd.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libftpconn/cmd.c') diff --git a/libftpconn/cmd.c b/libftpconn/cmd.c index 1721264c..803dda7c 100644 --- a/libftpconn/cmd.c +++ b/libftpconn/cmd.c @@ -20,6 +20,7 @@ #include #include +#include #include #include @@ -157,9 +158,9 @@ ftp_conn_abort (struct ftp_conn *conn) int reply; error_t err; do - err = ftp_conn_get_reply (conn, &reply, 0); + err = ftp_conn_get_raw_reply (conn, &reply, 0); while (reply == REPLY_ABORTED); - if (reply != REPLY_TRANS_OK) + if (reply != REPLY_TRANS_OK && reply != REPLY_ABORT_OK) ftp_conn_close (conn); } else -- cgit v1.2.3