From 13cb3b5646e19b930d411ecb6a8376250930225b Mon Sep 17 00:00:00 2001 From: Nicolas Williams Date: Wed, 9 Nov 2016 22:32:44 -0600 Subject: [PATCH] Don't inhibit /etc/services matches --- lib/krb5/krbhst.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/krb5/krbhst.c b/lib/krb5/krbhst.c index 6e3602f1f..8d6ee7d39 100644 --- a/lib/krb5/krbhst.c +++ b/lib/krb5/krbhst.c @@ -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);