Author: abartlet Date: 2005-09-21 22:56:18 +0000 (Wed, 21 Sep 2005) New Revision: 476
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=lorikeet&rev=476 Log: Don't do DNS lookups on short names (no .). Andrew Bartlett Modified: trunk/heimdal/lib/krb5/krbhst.c Changeset: Modified: trunk/heimdal/lib/krb5/krbhst.c =================================================================== --- trunk/heimdal/lib/krb5/krbhst.c 2005-09-21 11:57:09 UTC (rev 475) +++ trunk/heimdal/lib/krb5/krbhst.c 2005-09-21 22:56:18 UTC (rev 476) @@ -634,6 +634,11 @@ 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;
