(common_init): don't try DNS when there is realm w/o a dot.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18272 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2006-10-06 17:11:02 +00:00
parent 8fcf8c13f6
commit 7a2077bff3

View File

@@ -667,6 +667,10 @@ common_init(krb5_context context,
return NULL;
}
/* For 'realms' without a . do not even think of going to DNS */
if (!strchr(realm, '.'))
kd->flags |= KD_CONFIG_EXISTS;
if (flags & KRB5_KRBHST_FLAGS_LARGE_MSG)
kd->flags |= KD_LARGE_MSG;
kd->end = kd->index = &kd->hosts;