From eb2c0324144e1c7f247816f2de95a4f0dc0a3e07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Tue, 2 Sep 2003 23:41:34 +0000 Subject: [PATCH] (krb5_get_init_creds_password): handle password passed in though context git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12732 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/krb5/init_creds_pw.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/krb5/init_creds_pw.c b/lib/krb5/init_creds_pw.c index e353fe4c2..7b7f9e516 100644 --- a/lib/krb5/init_creds_pw.c +++ b/lib/krb5/init_creds_pw.c @@ -1212,7 +1212,7 @@ krb5_get_init_creds_password(krb5_context context, if (ret) goto out; - if (password == NULL) { + if (password == NULL && pa_ctx.password == NULL) { krb5_prompt prompt; krb5_data password_data; char *p, *q; @@ -1237,8 +1237,8 @@ krb5_get_init_creds_password(krb5_context context, } password = password_data.data; } - - pa_ctx.password = password; + if (pa_ctx.password == NULL) + pa_ctx.password = password; done = 0; while(!done) {