mirror of
https://github.com/curl/curl.git
synced 2025-01-30 14:22:33 +08:00
ftp: use a correct expire ID for timer expiry
This was an accurate error pointed out by the icc warning: enumerated type mixed with another type Ref: #9179 Closes #9184
This commit is contained in:
parent
6f037100eb
commit
fe8f1512e5
@ -518,7 +518,8 @@ static CURLcode AllowServerConnect(struct Curl_easy *data, bool *connected)
|
|||||||
/* Add timeout to multi handle and break out of the loop */
|
/* Add timeout to multi handle and break out of the loop */
|
||||||
if(*connected == FALSE) {
|
if(*connected == FALSE) {
|
||||||
Curl_expire(data, data->set.accepttimeout > 0 ?
|
Curl_expire(data, data->set.accepttimeout > 0 ?
|
||||||
data->set.accepttimeout: DEFAULT_ACCEPT_TIMEOUT, 0);
|
data->set.accepttimeout: DEFAULT_ACCEPT_TIMEOUT,
|
||||||
|
EXPIRE_FTP_ACCEPT);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1283,6 +1283,7 @@ typedef enum {
|
|||||||
EXPIRE_TIMEOUT,
|
EXPIRE_TIMEOUT,
|
||||||
EXPIRE_TOOFAST,
|
EXPIRE_TOOFAST,
|
||||||
EXPIRE_QUIC,
|
EXPIRE_QUIC,
|
||||||
|
EXPIRE_FTP_ACCEPT,
|
||||||
EXPIRE_LAST /* not an actual timer, used as a marker only */
|
EXPIRE_LAST /* not an actual timer, used as a marker only */
|
||||||
} expire_id;
|
} expire_id;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user