[prev in list] [next in list] [prev in thread] [next in thread]
List: apr-cvs
Subject: svn commit: r1343235 - in /apr/apr/branches/1.4.x: ./ network_io/unix/sockaddr.c
From: sf () apache ! org
Date: 2012-05-28 13:05:57
Message-ID: 20120528130557.5C1582388978 () eris ! apache ! org
[Download RAW message or body]
Author: sf
Date: Mon May 28 13:05:56 2012
New Revision: 1343235
URL: http://svn.apache.org/viewvc?rev=1343235&view=rev
Log:
Merge r1341196:
If we retry getaddrinfo() without AI_ADDRCONFIG, we should really only remove
AI_ADDRCONFIG and not all flags.
When the retry logic was added in r64571, this was equivalent because not
other flags were set. But this has changed since then.
Modified:
apr/apr/branches/1.4.x/ (props changed)
apr/apr/branches/1.4.x/network_io/unix/sockaddr.c
Propchange: apr/apr/branches/1.4.x/
------------------------------------------------------------------------------
Merged /apr/apr/trunk:r1341196
Modified: apr/apr/branches/1.4.x/network_io/unix/sockaddr.c
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.4.x/network_io/unix/sockaddr.c?rev=1343235&r1=1343234&r2=1343235&view=diff
==============================================================================
--- apr/apr/branches/1.4.x/network_io/unix/sockaddr.c (original)
+++ apr/apr/branches/1.4.x/network_io/unix/sockaddr.c Mon May 28 13:05:56 2012
@@ -357,8 +357,8 @@ static apr_status_t call_resolver(apr_so
error = getaddrinfo(hostname, servname, &hints, &ai_list);
#ifdef HAVE_GAI_ADDRCONFIG
if (error == EAI_BADFLAGS && family == APR_UNSPEC) {
- /* Retry with no flags if AI_ADDRCONFIG was rejected. */
- hints.ai_flags = 0;
+ /* Retry without AI_ADDRCONFIG if it was rejected. */
+ hints.ai_flags &= ~AI_ADDRCONFIG;
error = getaddrinfo(hostname, servname, &hints, &ai_list);
}
#endif
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic