summaryrefslogtreecommitdiff
path: root/libftpconn
diff options
context:
space:
mode:
Diffstat (limited to 'libftpconn')
-rw-r--r--libftpconn/cmd.c5
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