mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:31:41 +03:00
hostip: fix !no_signal mixup in resolve refaactor
When extracting the resolve case using alarm timers, the check for "we
are not allowed to use signals" was refactored wrong.
Follow-up to 96d5b5c688
Closes #21047
This commit is contained in:
parent
d560002551
commit
745344ea4e
2 changed files with 4 additions and 2 deletions
|
|
@ -637,7 +637,7 @@ static CURLcode resolv_alarm_timeout(struct Curl_easy *data,
|
|||
|
||||
DEBUGASSERT(hostname && *hostname);
|
||||
DEBUGASSERT(timeoutms > 0);
|
||||
DEBUGASSERT(data->set.no_signal);
|
||||
DEBUGASSERT(!data->set.no_signal);
|
||||
#ifndef CURL_DISABLE_DOH
|
||||
DEBUGASSERT(!data->set.doh);
|
||||
#endif
|
||||
|
|
@ -783,7 +783,7 @@ CURLcode Curl_resolv(struct Curl_easy *data,
|
|||
return CURLE_OPERATION_TIMEDOUT;
|
||||
|
||||
#ifdef USE_ALARM_TIMEOUT
|
||||
if(timeoutms && !data->set.no_signal) {
|
||||
if(timeoutms && data->set.no_signal) {
|
||||
/* Cannot use ALARM when signals are disabled */
|
||||
timeoutms = 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue