diff options
author | Miles Bader <miles@gnu.org> | 1997-05-12 15:48:14 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1997-05-12 15:48:14 +0000 |
commit | 98678b4cfed68ff22f828d3da128e63ae0fd0a2a (patch) | |
tree | 8927a44f30c9b581bf13faca64c99d3a45547f5a /libftpconn/cmd.c | |
parent | 65f9352b2156e52aa44b95e0f7a77ddb67d8dbee (diff) |
(ftp_conn_abort):
Use ftp_conn_get_raw_reply instead of ftp_conn_get_reply.
Accept REPLY_ABORT_OK as a final reply.
Include <string.h>.
Diffstat (limited to 'libftpconn/cmd.c')
-rw-r--r-- | libftpconn/cmd.c | 5 |
1 files changed, 3 insertions, 2 deletions
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 <unistd.h> #include <errno.h> +#include <string.h> #include <arpa/telnet.h> #include <ftpconn.h> @@ -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 |