Fixed bug where shim layer was calling kim_identity_create_from_components
incorrectly in this case.
ticket: new
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20887
dc483132-0cff-0310-8789-
dd5450dbe970
const char *inRealm,
KLPrincipal *outPrincipal)
{
- return kl_check_error (kim_identity_create_from_components (outPrincipal,
- inRealm,
- inName,
- inInstance,
- NULL));
+ if (inInstance && strlen (inInstance) > 0) {
+ return kl_check_error (kim_identity_create_from_components (outPrincipal,
+ inRealm,
+ inName,
+ inInstance,
+ NULL));
+ } else {
+ return kl_check_error (kim_identity_create_from_components (outPrincipal,
+ inRealm,
+ inName,
+ NULL));
+ }
}
/* ------------------------------------------------------------------------ */