(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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user