mirror of
https://github.com/curl/curl.git
synced 2026-08-25 21:03:34 +03:00
Correct error code for CCC/SSL shutdown failure
This commit is contained in:
parent
55123424c8
commit
d465199411
4 changed files with 12 additions and 8 deletions
|
|
@ -2563,8 +2563,10 @@ static CURLcode ftp_statemach_act(struct connectdata *conn)
|
|||
/* First shut down the SSL layer (note: this call will block) */
|
||||
result = Curl_ssl_shutdown(conn, FIRSTSOCKET);
|
||||
|
||||
if(result)
|
||||
return CURLE_FTP_SSL_CCC_FAILED;
|
||||
if(result) {
|
||||
failf(conn->data, "Failed to clear the command channel (CCC)");
|
||||
return result;
|
||||
}
|
||||
|
||||
/* Then continue as normal */
|
||||
result = ftp_state_pwd(conn);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue