* hostaddr.c (krb5_os_hostaddr): Only retry non-numeric lookup after numeric
authorKen Raeburn <raeburn@mit.edu>
Thu, 2 Aug 2001 01:57:20 +0000 (01:57 +0000)
committerKen Raeburn <raeburn@mit.edu>
Thu, 2 Aug 2001 01:57:20 +0000 (01:57 +0000)
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
src/lib/krb5/os/hostaddr.c

index 8bd702339ab031d6eef4b54ddf069c2adc5fa847..b5f80a7674495d03b43d8efd891f10fd95f9a3aa 100644 (file)
@@ -1,3 +1,8 @@
+2001-08-01  Ken Raeburn  <raeburn@mit.edu>
+
+       * hostaddr.c (krb5_os_hostaddr): Only retry non-numeric lookup
+       after numeric lookup if AI_NUMERICHOST is nonzero.
+
 2001-07-31  Ezra Peisach  <epeisach@mit.edu>
 
        * genaddrs.c: Use GETPEERNAME_ARG2_TYPE, GETPEERNAME_ARG3_TYPE
index f8d5806f53f5291677f428d2d584be11fa34e4a9..0fbaadace54495eaf83fbacd380ac62c14c704e8 100644 (file)
@@ -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);
     }