svn rev #24976: trunk/src/slave/
ghudson@MIT.EDU
ghudson at MIT.EDU
Thu Jun 23 00:13:33 EDT 2011
http://src.mit.edu/fisheye/changelog/krb5/?cs=24976
Commit By: ghudson
Log Message:
Use AI_ADDRCONFIG unconditionally in kpropd.
fake-addrinfo.h ensures that AI_ADDRCONFIG is defined, so we don't
need #ifdef tests when we use it.
Changed Files:
U trunk/src/slave/kpropd.c
Modified: trunk/src/slave/kpropd.c
===================================================================
--- trunk/src/slave/kpropd.c 2011-06-22 23:31:36 UTC (rev 24975)
+++ trunk/src/slave/kpropd.c 2011-06-23 04:13:32 UTC (rev 24976)
@@ -245,11 +245,7 @@
memset(&hints, 0, sizeof(hints));
hints.ai_socktype = SOCK_STREAM;
- hints.ai_flags = AI_PASSIVE;
-#ifdef AI_ADDRCONFIG
- /* Try to avoid IPv6 if the host has no IPv6 interface addresses. */
- hints.ai_flags |= AI_ADDRCONFIG;
-#endif
+ hints.ai_flags = AI_PASSIVE | AI_ADDRCONFIG;
#ifdef KRB5_USE_INET6
hints.ai_family = AF_INET6;
error = getaddrinfo(NULL, port, &hints, res);
More information about the cvs-krb5
mailing list