(krb5_get_forwarded_creds): 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@5323 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.
|
||||
*
|
||||
@@ -111,10 +111,12 @@ krb5_get_forwarded_creds (krb5_context context,
|
||||
addrs.val = NULL;
|
||||
|
||||
#ifdef HAVE_GETHOSTBYNAME2
|
||||
#ifdef HAVE_IPV6
|
||||
ret = add_addrs (context, &addrs, gethostbyname2(hostname, AF_INET6),
|
||||
AF_INET6);
|
||||
if (ret)
|
||||
return ret;
|
||||
#endif
|
||||
ret = add_addrs (context, &addrs, gethostbyname2(hostname, AF_INET),
|
||||
AF_INET);
|
||||
if (ret)
|
||||
|
Reference in New Issue
Block a user