mirror of
https://github.com/curl/curl.git
synced 2026-06-01 23:54:17 +03:00
asyn-thread: Set errno to the proper value ENOMEM in OOM situation
This used to be set in some configurations to EAI_MEMORY which is not a valid value for errno and caused Curl_strerror to fail an assertion.
This commit is contained in:
parent
a330bab353
commit
11a8778e0b
1 changed files with 1 additions and 1 deletions
|
|
@ -380,7 +380,7 @@ static bool init_resolve_thread(struct connectdata *conn,
|
|||
const struct addrinfo *hints)
|
||||
{
|
||||
struct thread_data *td = calloc(1, sizeof(struct thread_data));
|
||||
int err = RESOLVER_ENOMEM;
|
||||
int err = ENOMEM;
|
||||
|
||||
conn->async.os_specific = (void *)td;
|
||||
if(!td)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue