Don't inhibit /etc/services matches

This commit is contained in:
Nicolas Williams
2016-11-09 22:32:44 -06:00
parent 6a68376a33
commit 13cb3b5646

View File

@@ -428,7 +428,7 @@ krb5_krbhst_get_addrinfo(krb5_context context, krb5_krbhst_info *host,
* systems. So we want to try it twice.
*/
hints.ai_flags &= ~(AI_NUMERICHOST);
hints.ai_flags &= ~(AI_NUMERICHOST | AI_NUMERICSERV);
if (strchr(hostname, '.') && hostname[strlen(hostname) - 1] != '.') {
ret = asprintf(&hostname, "%s.", host->hostname);