(krb5_get_host_realm): no infinite loops, please

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5712 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
1999-03-23 13:34:43 +00:00
parent 7a0922ca37
commit f8778973e5

View File

@@ -138,7 +138,7 @@ krb5_get_host_realm(krb5_context context,
return 0;
else if(dns_find_realm(context, p, *realms) == 0)
return 0;
p = strchr(p, '.');
p = strchr(p + 1, '.');
}
p = strchr(host, '.');
if(p == NULL)