From d8376090e786f0c6357fb238ea5cbcc412c1bad5 Mon Sep 17 00:00:00 2001 From: Alexandra Ellwood Date: Mon, 29 Sep 2008 05:20:22 +0000 Subject: [PATCH] If in_identity is NULL, use the identity the user entered. (Fixed typo) ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20777 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kim/lib/kim_credential.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/kim/lib/kim_credential.c b/src/kim/lib/kim_credential.c index caafb0e97..ee2ec0448 100644 --- a/src/kim/lib/kim_credential.c +++ b/src/kim/lib/kim_credential.c @@ -249,7 +249,7 @@ kim_error kim_credential_create_new (kim_credential *out_credential, krb5_creds creds; kim_boolean free_creds = 0; kim_count prompt_count; - krb5_principal principal = kim_identity_krb5_principal (in_identity); + krb5_principal principal = kim_identity_krb5_principal (identity); krb5_get_init_creds_opt *opts = kim_options_init_cred_options (options); char *service = kim_options_service_name (options); kim_time start_time = kim_options_start_time (options); @@ -280,7 +280,7 @@ kim_error kim_credential_create_new (kim_credential *out_credential, if (err == KRB5KDC_ERR_KEY_EXP) { - err = kim_identity_change_password_common (in_identity, 1, + err = kim_identity_change_password_common (identity, 1, &context); } @@ -290,7 +290,7 @@ kim_error kim_credential_create_new (kim_credential *out_credential, } else { /* new creds failed, report error to user */ - kim_error terr = kim_ui_handle_kim_error (&context, in_identity, + kim_error terr = kim_ui_handle_kim_error (&context, identity, kim_ui_error_type_authentication, err); -- 2.26.2