From cc1dfdd08881f7f80523d830abe2b9779bebecbf Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Fri, 31 Aug 2001 17:47:42 +0000 Subject: [PATCH] * hostaddr.c (krb5_os_hostaddr): Don't use AI_DEFAULT git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13715 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/os/ChangeLog | 2 ++ src/lib/krb5/os/hostaddr.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/krb5/os/ChangeLog b/src/lib/krb5/os/ChangeLog index 6432123d1..873bb0348 100644 --- a/src/lib/krb5/os/ChangeLog +++ b/src/lib/krb5/os/ChangeLog @@ -1,5 +1,7 @@ 2001-08-31 Ken Raeburn + * hostaddr.c (krb5_os_hostaddr): Don't use AI_DEFAULT. + * genaddrs.c (struct addrpair): New type. (cvtaddr): New function. Fills in krb5_address structures referencing port and address parts of a sockaddr. Converts diff --git a/src/lib/krb5/os/hostaddr.c b/src/lib/krb5/os/hostaddr.c index 0fbaadace..3225ac571 100644 --- a/src/lib/krb5/os/hostaddr.c +++ b/src/lib/krb5/os/hostaddr.c @@ -48,7 +48,7 @@ krb5_os_hostaddr(context, name, ret_addrs) return KRB5_ERR_BAD_HOSTNAME; memset (&hints, 0, sizeof (hints)); - hints.ai_flags = AI_DEFAULT | AI_NUMERICHOST; + hints.ai_flags = AI_NUMERICHOST; /* We don't care what kind at this point, really, but without this, we can get back multiple sockaddrs per address, for SOCK_DGRAM, SOCK_STREAM, and SOCK_RAW. I haven't checked if -- 2.26.2