1
0
mirror of https://github.com/moparisthebest/curl synced 2025-03-11 07:39:50 -04:00

Only shut down SSL if the CCC command succeeded.

This commit is contained in:
Dan Fandrich 2007-01-24 19:09:12 +00:00
parent 3239f059b8
commit 5f9cbc4209

View File

@ -2560,6 +2560,7 @@ static CURLcode ftp_statemach_act(struct connectdata *conn)
break;
case FTP_CCC:
if (ftpcode < 500) {
/* First shut down the SSL layer (note: this call will block) */
result = Curl_ssl_shutdown(conn, FIRSTSOCKET);
@ -2567,6 +2568,7 @@ static CURLcode ftp_statemach_act(struct connectdata *conn)
failf(conn->data, "Failed to clear the command channel (CCC)");
return result;
}
}
/* Then continue as normal */
result = ftp_state_pwd(conn);