being done in lower case, and if necessary, convert it to upper case
if the domain is being used as the default realm.
In addition, there was an extra free without an associated *alloc.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6994
dc483132-0cff-0310-8789-
dd5450dbe970
7) D
*/
- for (cp = local_host; *cp; cp++)
- if (islower(*cp))
- *cp = toupper(*cp);
cp = local_host;
realm = default_realm = (char *)NULL;
while (cp) {
return ENOMEM;
strcpy(cp, default_realm);
realm = cp;
+
+ /* Assume the realm name is upper case */
+ for (cp = realm; *cp; cp++)
+ if (islower(*cp))
+ *cp = toupper(*cp);
+ cp = realm;
}
else
{
/* We are defaulting to the local realm */
retval = krb5_get_default_realm(context, &cp);
if (retval) {
- krb5_xfree(retrealms);
return retval;
}
}