In sn2princ, getaddrinfo without AI_ADDRCONFIG
[krb5.git] / src / lib / krb5 / os / sn2princ.c
index 1bee5ae81e2721198b3977a4c178f4756f0aba7f..f149febdadef32235a33b70fefff6b27f3c6e72f 100644 (file)
@@ -105,7 +105,7 @@ krb5_sname_to_principal(krb5_context context, const char *hostname, const char *
                hostnames associated.  */
 
             memset(&hints, 0, sizeof(hints));
-            hints.ai_flags = AI_CANONNAME | AI_ADDRCONFIG;
+            hints.ai_flags = AI_CANONNAME;
             err = getaddrinfo(hostname, 0, &hints, &ai);
             if (err) {
 #ifdef DEBUG_REFERRALS