(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
This commit is contained in:
Love Hörnquist Åstrand
2003-09-02 23:41:34 +00:00
parent 90b82c4533
commit eb2c032414

View File

@@ -1212,7 +1212,7 @@ krb5_get_init_creds_password(krb5_context context,
if (ret) if (ret)
goto out; goto out;
if (password == NULL) { if (password == NULL && pa_ctx.password == NULL) {
krb5_prompt prompt; krb5_prompt prompt;
krb5_data password_data; krb5_data password_data;
char *p, *q; char *p, *q;
@@ -1237,8 +1237,8 @@ krb5_get_init_creds_password(krb5_context context,
} }
password = password_data.data; password = password_data.data;
} }
if (pa_ctx.password == NULL)
pa_ctx.password = password; pa_ctx.password = password;
done = 0; done = 0;
while(!done) { while(!done) {