From 7a2077bff3357bf2bca6609dfd148b4377737550 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Fri, 6 Oct 2006 17:11:02 +0000 Subject: [PATCH] (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 --- lib/krb5/krbhst.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/krb5/krbhst.c b/lib/krb5/krbhst.c index 2aa29b72f..85489c2c0 100644 --- a/lib/krb5/krbhst.c +++ b/lib/krb5/krbhst.c @@ -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;