1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-12 04:25:08 -05:00

ftp.c: Added missing brackets around ABOR command logic

This commit is contained in:
Marc Hoersken 2013-04-06 23:11:20 +02:00
parent 4e2ed01a2e
commit f3bd2abb61

View File

@ -3374,7 +3374,7 @@ static CURLcode ftp_done(struct connectdata *conn, CURLcode status,
#endif #endif
if(conn->sock[SECONDARYSOCKET] != CURL_SOCKET_BAD) { 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 */ /* partial download completed */
result = Curl_pp_sendf(pp, "ABOR"); result = Curl_pp_sendf(pp, "ABOR");
if(result) { if(result) {
@ -3383,6 +3383,7 @@ static CURLcode ftp_done(struct connectdata *conn, CURLcode status,
ftpc->ctl_valid = FALSE; /* mark control connection as bad */ ftpc->ctl_valid = FALSE; /* mark control connection as bad */
conn->bits.close = TRUE; /* mark for connection closure */ conn->bits.close = TRUE; /* mark for connection closure */
} }
}
if(conn->ssl[SECONDARYSOCKET].use) { if(conn->ssl[SECONDARYSOCKET].use) {
/* The secondary socket is using SSL so we must close down that part /* The secondary socket is using SSL so we must close down that part