processing principal name, rather than going into an infinite loop.
Suggested by Mark Phalan at Sun.
ticket: 3697
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18148
dc483132-0cff-0310-8789-
dd5450dbe970
if (realm - canon && *(realm - 1) != '\\')
break;
else
- realm = strchr(realm, '@');
+ realm = strchr(realm+1, '@');
}
if (realm)
*realm++ = '\0';
if (cp - canon && *(cp - 1) != '\\')
break;
else
- cp = strchr(cp, '/');
+ cp = strchr(cp+1, '/');
}
if (cp != NULL)
*cp = '\0';