From f8778973e57ff865bcf2bcf6b6e1f572f5e3457e Mon Sep 17 00:00:00 2001 From: Johan Danielsson Date: Tue, 23 Mar 1999 13:34:43 +0000 Subject: [PATCH] (krb5_get_host_realm): no infinite loops, please git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5712 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/krb5/get_host_realm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/krb5/get_host_realm.c b/lib/krb5/get_host_realm.c index 94558172e..de45c65e6 100644 --- a/lib/krb5/get_host_realm.c +++ b/lib/krb5/get_host_realm.c @@ -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)