ftp: remove redundant if

Reported-by: Trail of Bits

Closes #9753
This commit is contained in:
Daniel Stenberg 2022-10-17 15:57:35 +02:00
parent ec977b050d
commit f6b9971d73
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -516,11 +516,9 @@ static CURLcode AllowServerConnect(struct Curl_easy *data, bool *connected)
}
else {
/* Add timeout to multi handle and break out of the loop */
if(*connected == FALSE) {
Curl_expire(data, data->set.accepttimeout > 0 ?
data->set.accepttimeout: DEFAULT_ACCEPT_TIMEOUT,
EXPIRE_FTP_ACCEPT);
}
Curl_expire(data, data->set.accepttimeout ?
data->set.accepttimeout: DEFAULT_ACCEPT_TIMEOUT,
EXPIRE_FTP_ACCEPT);
}
return result;