Skip to content

Commit

Permalink
ftp.c: Added missing brackets around ABOR command logic
Browse files Browse the repository at this point in the history
  • Loading branch information
mback2k committed Apr 6, 2013
1 parent 4e2ed01 commit f3bd2ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/ftp.c
Expand Up @@ -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) {
Expand All @@ -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
Expand Down

0 comments on commit f3bd2ab

Please sign in to comment.