ftp: part of conditional expression is always true: !result

Fixes warning detected by PVS-Studio
Fixes #4374
This commit is contained in:
Daniel Stenberg 2019-09-19 09:14:15 +02:00
parent 69ea985d4c
commit 97c17e9fcb
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -523,7 +523,7 @@ static CURLcode AllowServerConnect(struct connectdata *conn, bool *connected)
}
else {
/* Add timeout to multi handle and break out of the loop */
if(!result && *connected == FALSE) {
if(*connected == FALSE) {
Curl_expire(data, data->set.accepttimeout > 0 ?
data->set.accepttimeout: DEFAULT_ACCEPT_TIMEOUT, 0);
}