lookup if AI_NUMERICHOST is nonzero.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13665
dc483132-0cff-0310-8789-
dd5450dbe970
+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
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);
}