(get_kdc_address): only call gethostbyname2 with AF_INET6 if we
actually have IPv6. From "Brandon S. Allbery KF8NH" <allbery@kf8nh.apk.net> git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5324 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 1998 Kungliga Tekniska H<>gskolan
|
||||
* Copyright (c) 1997, 1998, 1999 Kungliga Tekniska H<>gskolan
|
||||
* (Royal Institute of Technology, Stockholm, Sweden).
|
||||
* All rights reserved.
|
||||
*
|
||||
@@ -65,8 +65,10 @@ get_kdc_address (krb5_context context,
|
||||
*dot = '\0';
|
||||
|
||||
#ifdef HAVE_GETHOSTBYNAME2
|
||||
#ifdef HAVE_IPV6
|
||||
hostent = gethostbyname2 (p, AF_INET6);
|
||||
if (hostent == NULL)
|
||||
#endif
|
||||
hostent = gethostbyname2 (p, AF_INET);
|
||||
#else
|
||||
hostent = roken_gethostbyname (p);
|
||||
|
Reference in New Issue
Block a user