diff --git a/lib/krb5/send_to_kdc.c b/lib/krb5/send_to_kdc.c index e7656528f..624a01cdf 100644 --- a/lib/krb5/send_to_kdc.c +++ b/lib/krb5/send_to_kdc.c @@ -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. * @@ -266,8 +266,10 @@ krb5_sendto_kdc (krb5_context context, if (colon) *colon = '\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);