(krb5_get_host_realm): include leading dot (if any) when looking up

realms.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5540 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1999-03-15 08:27:40 +00:00
parent 2ba6c8cc86
commit 899249b762

View File

@@ -134,13 +134,11 @@ krb5_get_host_realm(krb5_context context,
p = host;
while(p) {
printf("%s\n", p);
if(config_find_realm(context, p, *realms) == 0)
return 0;
else if(dns_find_realm(context, p, *realms) == 0)
return 0;
p = strchr(p, '.');
if(p) p++;
}
p = strchr(host, '.');
if(p == NULL)