mirror of
https://github.com/curl/curl.git
synced 2026-07-26 05:07:22 +03:00
Only shut down SSL if the CCC command succeeded.
This commit is contained in:
parent
3239f059b8
commit
5f9cbc4209
1 changed files with 7 additions and 5 deletions
12
lib/ftp.c
12
lib/ftp.c
|
|
@ -2560,12 +2560,14 @@ static CURLcode ftp_statemach_act(struct connectdata *conn)
|
|||
break;
|
||||
|
||||
case FTP_CCC:
|
||||
/* First shut down the SSL layer (note: this call will block) */
|
||||
result = Curl_ssl_shutdown(conn, FIRSTSOCKET);
|
||||
if (ftpcode < 500) {
|
||||
/* First shut down the SSL layer (note: this call will block) */
|
||||
result = Curl_ssl_shutdown(conn, FIRSTSOCKET);
|
||||
|
||||
if(result) {
|
||||
failf(conn->data, "Failed to clear the command channel (CCC)");
|
||||
return result;
|
||||
if(result) {
|
||||
failf(conn->data, "Failed to clear the command channel (CCC)");
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
/* Then continue as normal */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue