summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2011-06-23 04:13:32 +0000
committerGreg Hudson <ghudson@mit.edu>2011-06-23 04:13:32 +0000
commita37f9319e143c0db50351cc3f6e270b677bdacc1 (patch)
tree26cf45698105b87e4796501318ca72c6fd3147b6
parent20d129968347e3fda75ab8a7e366d2d417f8024c (diff)
downloadkrb5-a37f9319e143c0db50351cc3f6e270b677bdacc1.tar.gz
krb5-a37f9319e143c0db50351cc3f6e270b677bdacc1.tar.xz
krb5-a37f9319e143c0db50351cc3f6e270b677bdacc1.zip
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. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24976 dc483132-0cff-0310-8789-dd5450dbe970
-rw-r--r--src/slave/kpropd.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/slave/kpropd.c b/src/slave/kpropd.c
index 259d633681..d20d86561c 100644
--- a/src/slave/kpropd.c
+++ b/src/slave/kpropd.c
@@ -245,11 +245,7 @@ get_wildcard_addr(struct addrinfo **res)
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);