ftp: active mode with SSL, add the damn filter
- since 7.87.0 we lost adding the SSL filter for an active FTP connection that uses SSL. This leads to hangers and timeouts as reported in #10666. Reported-by: SandakovMM on github Fixes #10666 Closes #10669
This commit is contained in:
parent
2a31086f39
commit
a26418cf14
@ -436,6 +436,12 @@ static CURLcode InitiateTransfer(struct Curl_easy *data)
|
||||
bool connected;
|
||||
|
||||
DEBUGF(infof(data, "ftp InitiateTransfer()"));
|
||||
if(conn->bits.ftp_use_data_ssl && data->set.ftp_use_port &&
|
||||
!Curl_conn_is_ssl(conn, SECONDARYSOCKET)) {
|
||||
result = Curl_ssl_cfilter_add(data, conn, SECONDARYSOCKET);
|
||||
if(result)
|
||||
return result;
|
||||
}
|
||||
result = Curl_conn_connect(data, SECONDARYSOCKET, TRUE, &connected);
|
||||
if(result || !connected)
|
||||
return result;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user