gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnurl] 95/256: asyn-thread: Set errno to the proper value


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 95/256: asyn-thread: Set errno to the proper value ENOMEM in OOM situation
Date: Fri, 06 Oct 2017 19:43:06 +0200

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository gnurl.

commit 11a8778e0b720a1683dabdfe7d2b21f6dcb138fd
Author: Dan Fandrich <address@hidden>
AuthorDate: Mon Aug 28 23:41:04 2017 +0200

    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.
---
 lib/asyn-thread.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/asyn-thread.c b/lib/asyn-thread.c
index 8936b6033..fa47f554a 100644
--- a/lib/asyn-thread.c
+++ b/lib/asyn-thread.c
@@ -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)

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]