From 8aee69db417d53993fdd2d02b1b014eb73dabe9b Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Thu, 2 Aug 2001 01:57:20 +0000 Subject: [PATCH] * 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 --- src/lib/krb5/os/ChangeLog | 5 +++++ src/lib/krb5/os/hostaddr.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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); } -- 2.26.2