From: Ken Raeburn Date: Thu, 2 Aug 2001 01:57:20 +0000 (+0000) Subject: * hostaddr.c (krb5_os_hostaddr): Only retry non-numeric lookup after numeric X-Git-Tag: krb5-1.3-alpha1~1146 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8aee69db417d53993fdd2d02b1b014eb73dabe9b;p=krb5.git * hostaddr.c (krb5_os_hostaddr): Only retry non-numeric lookup after numeric lookup if AI_NUMERICHOST is nonzero. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13665 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/os/ChangeLog b/src/lib/krb5/os/ChangeLog index 8bd702339..b5f80a767 100644 --- a/src/lib/krb5/os/ChangeLog +++ b/src/lib/krb5/os/ChangeLog @@ -1,3 +1,8 @@ +2001-08-01 Ken Raeburn + + * hostaddr.c (krb5_os_hostaddr): Only retry non-numeric lookup + after numeric lookup if AI_NUMERICHOST is nonzero. + 2001-07-31 Ezra Peisach * genaddrs.c: Use GETPEERNAME_ARG2_TYPE, GETPEERNAME_ARG3_TYPE diff --git a/src/lib/krb5/os/hostaddr.c b/src/lib/krb5/os/hostaddr.c index f8d5806f5..0fbaadace 100644 --- a/src/lib/krb5/os/hostaddr.c +++ b/src/lib/krb5/os/hostaddr.c @@ -56,7 +56,7 @@ krb5_os_hostaddr(context, name, ret_addrs) hints.ai_socktype = SOCK_DGRAM; r = getaddrinfo (name, 0, &hints, &ai); - if (r) { + if (r && AI_NUMERICHOST != 0) { hints.ai_flags &= ~AI_NUMERICHOST; r = getaddrinfo (name, 0, &hints, &ai); }