Skip to content
Snippets Groups Projects
Commit f3bd2abb authored by Marc Hoersken's avatar Marc Hoersken
Browse files

ftp.c: Added missing brackets around ABOR command logic

parent 4e2ed01a
No related branches found
No related tags found
No related merge requests found
......@@ -3374,7 +3374,7 @@ static CURLcode ftp_done(struct connectdata *conn, CURLcode status,
#endif
if(conn->sock[SECONDARYSOCKET] != CURL_SOCKET_BAD) {
if(!result && ftpc->dont_check && data->req.maxdownload > 0)
if(!result && ftpc->dont_check && data->req.maxdownload > 0) {
/* partial download completed */
result = Curl_pp_sendf(pp, "ABOR");
if(result) {
......@@ -3383,6 +3383,7 @@ static CURLcode ftp_done(struct connectdata *conn, CURLcode status,
ftpc->ctl_valid = FALSE; /* mark control connection as bad */
conn->bits.close = TRUE; /* mark for connection closure */
}
}
if(conn->ssl[SECONDARYSOCKET].use) {
/* The secondary socket is using SSL so we must close down that part
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment